15 #import <Foundation/Foundation.h>
17 #import "EMMessageBody.h"
18 #import "EMMessageReaction.h"
19 #import "EMStreamChunk.h"
27 typedef NS_ENUM(NSInteger, EMChatType) {
40 typedef NS_ENUM(NSInteger, EMMessageStatus) {
41 EMMessageStatusPending = 0,
42 EMMessageStatusDelivering,
43 EMMessageStatusSucceed,
44 EMMessageStatusFailed,
54 typedef NS_ENUM(NSInteger, EMMessageDirection) {
55 EMMessageDirectionSend = 0,
56 EMMessageDirectionReceive,
66 typedef NS_ENUM(NSInteger, EMChatRoomMessagePriority) {
68 EMChatRoomMessagePriorityHigh = 0,
70 EMChatRoomMessagePriorityNormal,
72 EMChatRoomMessagePriorityLow,
84 @property (strong,nonatomic) NSString* _Nonnull
operatorId;
97 typedef NS_ENUM(NSInteger, EMMessagePinOperation) {
118 @property (strong,nonatomic) NSString* _Nullable userId;
124 @property (strong,nonatomic) NSString* _Nullable nickname;
130 @property (strong,nonatomic) NSString* _Nullable avatarUrl;
136 @property (strong,nonatomic) NSString* _Nullable remark;
142 @property (strong,nonatomic) NSString* _Nullable groupNameCard;
156 -(instancetype _Nonnull ) init __attribute__((unavailable("call initWithConversationID instead")));
165 @property (nonatomic, copy) NSString * _Nonnull
messageId;
192 @property (nonatomic, copy) NSString * _Nonnull
from;
201 @property (nonatomic, copy) NSString * _Nonnull
to;
243 @property (nonatomic) EMMessageStatus
status;
369 @property (nonatomic,readonly) BOOL
isRead;
406 @property (nonatomic, strong) NSArray<EMMessageBody *> * _Nonnull
bodies;
433 @property (nonatomic, readonly) NSArray <EMMessageReaction *>* _Nullable
reactionList;
446 @property (nonatomic, copy) NSDictionary * _Nullable
ext;
474 @property (nonatomic) EMChatRoomMessagePriority
priority;
536 @property (nonatomic,strong) NSArray<NSString*>* _Nullable
receiverList;
611 - (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
612 from:(NSString *_Nonnull)aFrom
613 to:(NSString *_Nonnull)aTo
615 ext:(NSDictionary *_Nullable)aExt;
638 - (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
640 ext:(NSDictionary *_Nullable)aExt;
657 - (instancetype _Nullable)initWithConversationID:(NSString *_Nonnull)aConversationId
659 ext:(NSDictionary *_Nullable)aExt;
BOOL isRead
Definition: EMChatMessage.h:369
NSString *_Nullable webhookEnv
Definition: EMChatMessage.h:521
NSInteger pinTime
Definition: EMChatMessage.h:86
int groupReadReceiptCount
Definition: EMChatMessage.h:327
NSArray< EMMessageReaction * > *_Nullable reactionList
Definition: EMChatMessage.h:433
NSArray< NSString * > *_Nullable receiverList
Definition: EMChatMessage.h:536
BOOL isDeliverAcked
Definition: EMChatMessage.h:354
EMMessageStatus status
Definition: EMChatMessage.h:243
EMMessageBody *_Nonnull body
Definition: EMChatMessage.h:395
Definition: EMMessageBody.h:56
Definition: EMChatMessage.h:154
NSString *_Nonnull from
Definition: EMChatMessage.h:192
EMMessageDirection direction
Definition: EMChatMessage.h:183
EMMessageBodyType contentType
Definition: EMChatMessage.h:415
EMMessagePinInfo *_Nullable pinnedInfo
Definition: EMChatMessage.h:573
NSString *_Nonnull to
Definition: EMChatMessage.h:201
BOOL isContentReplaced
Definition: EMChatMessage.h:548
EMChatThread *_Nullable chatThread
Definition: EMChatMessage.h:459
NSString *_Nonnull messageId
Definition: EMChatMessage.h:165
BOOL isPeerRead
Definition: EMChatMessage.h:283
EMStreamChunk *_Nullable streamChunk
Definition: EMChatMessage.h:579
BOOL isListened
Definition: EMChatMessage.h:384
NSDictionary *_Nullable ext
Definition: EMChatMessage.h:446
Definition: EMChatThread.h:21
BOOL isChatThreadMessage
Definition: EMChatMessage.h:298
BOOL deliverOnlineOnly
Definition: EMChatMessage.h:502
BOOL isNeedReadReceipt
Definition: EMChatMessage.h:318
EMChatRoomMessagePriority priority
Definition: EMChatMessage.h:474
EMChatType chatType
Definition: EMChatMessage.h:234
EMMessageSenderInfo *_Nullable senderInfo
Definition: EMChatMessage.h:585
BOOL onlineState
Definition: EMChatMessage.h:268
NSString *_Nonnull operatorId
Definition: EMChatMessage.h:84
Definition: EMStreamChunk.h:41
long long localTime
Definition: EMChatMessage.h:225
CGFloat progress
Definition: EMChatMessage.h:557
BOOL broadcast
Definition: EMChatMessage.h:486
long long timestamp
Definition: EMChatMessage.h:212
NSString *_Nonnull conversationId
Definition: EMChatMessage.h:174
NSArray< EMMessageBody * > *_Nonnull bodies
Definition: EMChatMessage.h:406
Definition: EMChatMessage.h:82
Definition: EMChatMessage.h:112