15 #import <Foundation/Foundation.h> 17 #import "EMMessageBody.h" 27 EMConversationTypeChat = 0,
28 EMConversationTypeGroupChat,
29 EMConversationTypeChatRoom
40 EMMessageSearchDirectionUp = 0,
41 EMMessageSearchDirectionDownload
42 } EMMessageSearchDirection;
71 @property (nonatomic, assign, readonly) EMConversationType
type;
89 @property (nonatomic, copy) NSDictionary *
ext;
115 - (BOOL)insertMessage:(
EMMessage *)aMessage;
132 - (BOOL)deleteMessageWithId:(NSString *)aMessageId;
162 - (BOOL)updateMessage:(
EMMessage *)aMessage;
179 - (BOOL)markMessageAsReadWithId:(NSString *)aMessageId;
205 - (BOOL)updateConversationExtToDB
__deprecated_msg("setExt: will update extend properties to DB");
222 - (
EMMessage *)loadMessageWithId:(NSString *)aMessageId;
243 - (NSArray *)loadMoreMessagesFromId:(NSString *)aMessageId
245 direction:(EMMessageSearchDirection)aDirection;
270 - (NSArray *)loadMoreMessagesWithType:(EMMessageBodyType)aType
271 before:(
long long)aTimestamp
273 from:(NSString*)aSender
274 direction:(EMMessageSearchDirection)aDirection;
299 - (NSArray *)loadMoreMessagesContain:(NSString*)aKeywords
300 before:(
long long)aTimestamp
302 from:(NSString*)aSender
303 direction:(EMMessageSearchDirection)aDirection;
324 - (NSArray *)loadMoreMessagesFrom:(
long long)aStartTimestamp
325 to:(
long long)aEndTimestamp
326 maxCount:(
int)aMaxCount;
"setExt: will update extend properties to DB" __deprecated_msg()
NSString * conversationId
Definition: EMConversation.h:62
Definition: EMConversation.h:53
int unreadMessagesCount
Definition: EMConversation.h:80
EMConversationType type
Definition: EMConversation.h:71
NSDictionary * ext
Definition: EMConversation.h:89
BOOL markAllMessagesAsRead()
Definition: EMMessage.h:65
EMMessage * latestMessage
Definition: EMConversation.h:98
EMMessage * latestMessageFromOthers()