You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.6 KiB

//
// JCMessageChannelCallback.h
// JCSDKOC
//
// Created by maikireton on 2017/8/11.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCMessageChannelItem.h"
#import "JCMessageChannelConversation.h"
/**
* @addtogroup
* @{
*/
/**
* JCMessageChannel
*/
@protocol JCMessageChannelCallback <NSObject>
/**
*
*
* @param message IM消息对象
*/
-(void)onMessageSendUpdate:(JCMessageChannelItem*)message;
/**
*
*
*
*
* @param message IM消息对象
*/
-(void)onMessageRecv:(JCMessageChannelItem*)message;
/**
*
*
* @param result
* @param operationId ID, revMessage返回
* @param jcMessageChannelConversationList ,
* @param reason @ref JCMessageChannelReason "失败原因描述"
* @param updateTime result false
* @param refreshServerUid refreshConversation serverUid
*/
-(void)onRefreshConversation:(int)operationId result:(bool)result conversations:(NSArray<JCMessageChannelConversation*>*)conversations reason:(JCMessageChannelReason)reason updateTime:(long)updateTime refreshServerUid:(NSString*)refreshServerUid;
/**
*
*
* @param result
* @param operationId ID, revMessage返回
* @param reason @ref JCMessageChannelReason "失败原因描述"
*/
-(void)onFetchMessageResult:(int)operationId result:(bool)result reason:(JCMessageChannelReason)reason;
/**
*
*
* @param result
* @param operationId ID, setMessageRead返回
* @param reason @ref JCMessageChannelReason "失败原因描述"
*/
-(void)onMarkReadResult:(int)operationId result:(bool)result reason:(JCMessageChannelReason)reason;
/**
*
*
* @param result
* @param operationId ID, setMessageRead返回
* @param reason @ref JCMessageChannelReason "失败原因描述"
*/
-(void)onMarkRecvResult:(int)operationId result:(bool)result reason:(JCMessageChannelReason)reason;
/**
*
*
* @param serverUid ID
* @param serverMessageId id
*/
-(void)onReceiveMarkRecv:(NSString*)serverUid serverMessageId:(long)serverMessageId;
/**
*
*
* @param serverUid ID
* @param serverMessageId id
*/
-(void)onReceiveMarkRead:(NSString*)serverUid serverMessageId:(long)serverMessageId;
/**
*
*
*
*
* @param messageList IM消息对象列表
*/
-(void)onMessageListRecv:(NSArray<JCMessageChannelItem*>*)messageList;
/**
*
*
* @param result
* @param operationId ID, setMessageRead返回
* @param reason @ref JCMessageChannelReason "失败原因描述"
*/
-(void)onWithdrawalMessageResult:(int)operationId result:(bool)result message:(JCMessageChannelItem*)message reason:(JCMessageChannelReason)reason;
@end
/**
* @}
*/