9#import <Foundation/Foundation.h>
11#import "AgoraChatMessageBody.h"
12#import "AgoraChatMessageReaction.h"
18typedef NS_ENUM(NSInteger, AgoraChatType) {
19 AgoraChatTypeChat = 0,
20 AgoraChatTypeGroupChat,
21 AgoraChatTypeChatRoom,
28typedef NS_ENUM(NSInteger, AgoraChatMessageStatus) {
29 AgoraChatMessageStatusPending = 0,
30 AgoraChatMessageStatusDelivering,
31 AgoraChatMessageStatusSucceed,
32 AgoraChatMessageStatusFailed,
39typedef NS_ENUM(NSInteger, AgoraChatMessageDirection) {
40 AgoraChatMessageDirectionSend = 0,
41 AgoraChatMessageDirectionReceive,
48typedef NS_ENUM(NSInteger, AgoraChatRoomMessagePriority) {
49 AgoraChatRoomMessagePriorityHigh = 0,
50 AgoraChatRoomMessagePriorityNormal,
51 AgoraChatRoomMessagePriorityLow,
66@property (nonatomic, copy) NSString * _Nonnull
messageId;
78@property (nonatomic) AgoraChatMessageDirection
direction;
84@property (nonatomic, copy) NSString * _Nonnull
from;
90@property (nonatomic, copy) NSString * _Nonnull
to;
118@property (nonatomic) AgoraChatMessageStatus
status;
211@property (nonatomic, readonly) NSArray <AgoraChatMessageReaction *>* _Nullable
reactionList;
229@property (nonatomic, copy) NSDictionary * _Nullable
ext;
246@property (nonatomic) AgoraChatRoomMessagePriority
priority;
263@property (nonatomic,strong) NSArray<NSString*>* _Nullable
receiverList;
279- (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
280 from:(NSString *_Nonnull)aFrom
281 to:(NSString *_Nonnull)aTo
283 ext:(NSDictionary *_Nullable)aExt;
297- (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
299 ext:(NSDictionary *_Nullable)aExt;
Definition: AgoraChatMessageBody.h:33
Definition: AgoraChatMessage.h:61
BOOL isReadAcked
Definition: AgoraChatMessage.h:142
AgoraChatMessageStatus status
Definition: AgoraChatMessage.h:118
NSArray< AgoraChatMessageReaction * > *_Nullable reactionList
Definition: AgoraChatMessage.h:211
NSString *_Nonnull from
Definition: AgoraChatMessage.h:84
AgoraChatMessageBody *_Nonnull body
Definition: AgoraChatMessage.h:205
int groupAckCount
Definition: AgoraChatMessage.h:166
AgoraChatThread *_Nullable chatThread
Definition: AgoraChatMessage.h:237
AgoraChatMessageDirection direction
Definition: AgoraChatMessage.h:78
long long timestamp
Definition: AgoraChatMessage.h:98
NSString *_Nonnull to
Definition: AgoraChatMessage.h:90
NSString *_Nonnull messageId
Definition: AgoraChatMessage.h:66
NSDictionary *_Nullable ext
Definition: AgoraChatMessage.h:229
BOOL deliverOnlineOnly
Definition: AgoraChatMessage.h:254
NSArray< NSString * > *_Nullable receiverList
Definition: AgoraChatMessage.h:263
AgoraChatType chatType
Definition: AgoraChatMessage.h:112
long long localTime
Definition: AgoraChatMessage.h:106
BOOL isChatThreadMessage
Definition: AgoraChatMessage.h:151
BOOL isRead
Definition: AgoraChatMessage.h:190
BOOL isNeedGroupAck
Definition: AgoraChatMessage.h:160
BOOL isListened
Definition: AgoraChatMessage.h:199
NSString *_Nonnull conversationId
Definition: AgoraChatMessage.h:72
BOOL onlineState
Definition: AgoraChatMessage.h:133
AgoraChatRoomMessagePriority priority
Definition: AgoraChatMessage.h:246
BOOL isDeliverAcked
Definition: AgoraChatMessage.h:181
Definition: AgoraChatMessageReaction.h:18
Definition: AgoraChatThread.h:19