15 #import <Foundation/Foundation.h> 17 #import "EMCommonDefs.h" 18 #import "EMChatManagerDelegate.h" 19 #import "EMConversation.h" 22 #import "EMTextMessageBody.h" 23 #import "EMLocationMessageBody.h" 24 #import "EMCmdMessageBody.h" 25 #import "EMFileMessageBody.h" 26 #import "EMImageMessageBody.h" 27 #import "EMVoiceMessageBody.h" 28 #import "EMVideoMessageBody.h" 29 #import "EMCursorResult.h" 47 #pragma mark - Delegate 63 delegateQueue:(dispatch_queue_t)aQueue;
78 #pragma mark - Conversation 113 type:(EMConversationType)aType
114 createIfNotExist:(BOOL)aIfCreate;
132 - (void)deleteConversation:(NSString *)aConversationId
133 isDeleteMessages:(BOOL)aIsDeleteMessages
134 completion:(
void (^)(NSString *aConversationId,
EMError *aError))aCompletionBlock;
152 - (void)deleteConversations:(NSArray *)aConversations
153 isDeleteMessages:(BOOL)aIsDeleteMessages
154 completion:(
void (^)(
EMError *aError))aCompletionBlock;
171 - (void)importConversations:(NSArray *)aConversations
172 completion:(
void (^)(
EMError *aError))aCompletionBlock;
174 #pragma mark - Message 191 - (NSString *)getMessageAttachmentPath:(NSString *)aConversationId;
207 - (void)importMessages:(NSArray *)aMessages
208 completion:(
void (^)(
EMError *aError))aCompletionBlock;
224 - (void)updateMessage:(
EMMessage *)aMessage
225 completion:(
void (^)(
EMMessage *aMessage,
EMError *aError))aCompletionBlock;
243 - (void)sendMessageReadAck:(
EMMessage *)aMessage
244 completion:(
void (^)(
EMMessage *aMessage,
EMError *aError))aCompletionBlock;
263 - (void)recallMessage:(
EMMessage *)aMessage
264 completion:(
void (^)(
EMMessage *aMessage,
EMError *aError))aCompletionBlock;
281 - (void)sendMessage:(
EMMessage *)aMessage
282 progress:(
void (^)(
int progress))aProgressBlock
300 - (void)resendMessage:(
EMMessage *)aMessage
301 progress:(
void (^)(
int progress))aProgressBlock
320 - (void)downloadMessageThumbnail:(
EMMessage *)aMessage
321 progress:(
void (^)(
int progress))aProgressBlock
341 - (void)downloadMessageAttachment:(
EMMessage *)aMessage
342 progress:(
void (^)(
int progress))aProgressBlock
371 - (
EMCursorResult *)fetchHistoryMessagesFromServer:(NSString *)aConversationId
372 conversationType:(EMConversationType)aConversationType
373 startMessageId:(NSString *)aStartMessageId
374 pageSize:(
int)aPageSize
400 - (void)asyncFetchHistoryMessagesFromServer:(NSString *)aConversationId
401 conversationType:(EMConversationType)aConversationType
402 startMessageId:(NSString *)aStartMessageId
403 pageSize:(
int)aPageSize
406 #pragma mark - EM_DEPRECATED_IOS 3.2.3 421 #pragma mark - EM_DEPRECATED_IOS < 3.2.3 457 - (BOOL)deleteConversation:(NSString *)aConversationId
458 deleteMessages:(BOOL)aDeleteMessage __deprecated_msg("Use -deleteConversation:isDeleteMessages:completion:");
477 - (BOOL)deleteConversations:(NSArray *)aConversations
478 deleteMessages:(BOOL)aDeleteMessage __deprecated_msg("Use -deleteConversations:isDeleteMessages:completion:");
495 - (BOOL)importConversations:(NSArray *)aConversations __deprecated_msg("Use -importConversations:completion:");
512 - (BOOL)importMessages:(NSArray *)aMessages __deprecated_msg("Use -importMessages:completion:");
529 - (BOOL)updateMessage:(
EMMessage *)aMessage __deprecated_msg("Use -updateMessage:completion:");
546 - (void)asyncSendReadAckForMessage:(
EMMessage *)aMessage __deprecated_msg("Use -sendMessageReadAck:completion:");
568 - (void)asyncSendMessage:(
EMMessage *)aMessage
569 progress:(
void (^)(
int progress))aProgressCompletion
570 completion:(
void (^)(
EMMessage *message,
EMError *error))aCompletion __deprecated_msg("Use -sendMessage:progress:completion:");
591 - (void)asyncResendMessage:(
EMMessage *)aMessage
592 progress:(
void (^)(
int progress))aProgressCompletion
593 completion:(
void (^)(
EMMessage *message,
EMError *error))aCompletion __deprecated_msg("Use -resendMessage:progress:completion:");
614 - (void)asyncDownloadMessageThumbnail:(
EMMessage *)aMessage
615 progress:(
void (^)(
int progress))aProgressCompletion
616 completion:(
void (^)(
EMMessage * message,
EMError *error))aCompletion __deprecated_msg("Use -downloadMessageThumbnail:progress:completion:");
637 - (void)asyncDownloadMessageAttachments:(
EMMessage *)aMessage
638 progress:(
void (^)(
int progress))aProgressCompletion
639 completion:(
void (^)(
EMMessage *message,
EMError *error))aCompletion __deprecated_msg("Use -downloadMessageAttachment:progress:completion");
664 - (void)loadMessagesWithType:(EMMessageBodyType)aType
665 timestamp:(
long long)aTimestamp
667 fromUser:(NSString*)aUsername
668 searchDirection:(EMMessageSearchDirection)aDirection
669 completion:(
void (^)(NSArray *aMessages,
EMError *aError))aCompletionBlock;
695 - (void)loadMessagesWithKeyword:(NSString*)aKeywords
696 timestamp:(
long long)aTimestamp
698 fromUser:(NSString*)aSender
699 searchDirection:(EMMessageSearchDirection)aDirection
700 completion:(
void (^)(NSArray *aMessages,
EMError *aError))aCompletionBlock;
Definition: EMChatManagerDelegate.h:27
Definition: EMConversation.h:54
"Use -getAllConversations" __deprecated_msg()
NSArray * getAllConversations()
Definition: EMMessage.h:65
Definition: EMCursorResult.h:24
Definition: IEMChatManager.h:43