@protocol MessageDelegate <NSObject> @required /** * 个人消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param peer_name 对方用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) userMessageReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 群组消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param group_name 群组ID * @param member_name 发送者用户ID * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid * @param extraType 富文本消息标识 */ - (void) groupMessageReceive:(NSString*)msgServerUuid groupName:(NSString*)group_name memberName:(NSString*)member_name content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid extraType:(NSInteger)extraType; /** * 透传消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param peer_name 对方用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) userForwardReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted content:(NSData*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 图片消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param peer_name 对方用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) userImageUrlReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 群组图片消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param group_name 群组ID * @param member_name 发送者用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) groupImageUrlReceive:(NSString*)msgServerUuid groupName:(NSString*)group_name memberName:(NSString*)member_name content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid extraType:(NSInteger)extraType; /** * 语音消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param peer_name 对方用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) userAudioUrlReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 群组语音消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param group_name 群组ID * @param member_name 发送者用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) groupAudioUrlReceive:(NSString*)msgServerUuid groupName:(NSString*)group_name memberName:(NSString*)member_name content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid extraType:(NSInteger)extraType; /** * 视频消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param peer_name 对方用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) userVideoMessageReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted describe:(NSString*)describe shortUrl:(NSString*)shortUrl videoUrl:(NSString*)videoUrl timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 群组视频消息接收 * @param msgServerUuid 服务端生成的全局唯一uuid * @param group_name 群组ID * @param member_name 发送者用户ID * @param decrypted 是否已解密 * @param content 消息内容 * @param timeStamp 时间戳 * @param msgClientUuid 发送端生成的uuid */ - (void) groupVideoMessageReceive:(NSString*)msgServerUuid groupName:(NSString*)group_name memberName:(NSString*)member_name describe:(NSString*)describe shortUrl:(NSString*)shortUrl videoUrl:(NSString*)videoUrl timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid extraType:(NSInteger)extraType; - (void) userContactReceive:(NSString*)msgServerUuid peerName:(NSString*)peer_name hasDecrypted:(BOOL)decrypted content:(NSString*)content timeStamp:(NSString*)timeStamp msgClientUuid:(NSString*)msgClientUuid; /** * 消息状态确认 * @param msgClientUuid 发送端生成的uuid * @param msgServerUuid 服务端生成的全局唯一uuid * @param status 消息接收状态 * @param timestamp 时间戳 */ - (void) messageResponse:(NSString*)msgClientUuid msgServerUuid:(NSString*)msgServerUuid status:(MessageStatus)status timeStamp:(NSString*)timeStamp; @optional @end