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) {
50 AgoraChatRoomMessagePriorityHigh = 0,
52 AgoraChatRoomMessagePriorityNormal,
54 AgoraChatRoomMessagePriorityLow,
63@property (strong,nonatomic) NSString* _Nonnull
operatorId;
73typedef NS_ENUM(NSInteger, AgoraChatMessagePinOperation) {
75 AgoraChatMessagePin = 0,
92@property (nonatomic, copy) NSString * _Nonnull messageId;
98@property (nonatomic, copy) NSString * _Nonnull conversationId;
104@property (nonatomic) AgoraChatMessageDirection direction;
110@property (nonatomic, copy) NSString * _Nonnull from;
116@property (nonatomic, copy) NSString * _Nonnull to;
124@property (nonatomic)
long long timestamp;
132@property (nonatomic)
long long localTime;
138@property (nonatomic) AgoraChatType chatType;
144@property (nonatomic) AgoraChatMessageStatus status;
159@property (nonatomic, readonly) BOOL onlineState;
168@property (nonatomic) BOOL isReadAcked;
177@property (nonatomic) BOOL isChatThreadMessage;
186@property (nonatomic) BOOL isNeedGroupAck;
192@property (nonatomic, readonly)
int groupAckCount;
207@property (nonatomic) BOOL isDeliverAcked;
216@property (nonatomic) BOOL isRead;
225@property (nonatomic) BOOL isListened;
237@property (nonatomic, readonly) NSArray <AgoraChatMessageReaction *>* _Nullable reactionList;
255@property (nonatomic, copy) NSDictionary * _Nullable ext;
272@property (nonatomic) AgoraChatRoomMessagePriority priority;
279@property (nonatomic,readonly) BOOL broadcast;
288@property (nonatomic) BOOL deliverOnlineOnly;
297@property (nonatomic,strong) NSArray<NSString*>* _Nullable receiverList;
305@property (nonatomic,readonly) BOOL isContentReplaced;
330- (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
331 from:(NSString *_Nonnull)aFrom
332 to:(NSString *_Nonnull)aTo
334 ext:(NSDictionary *_Nullable)aExt;
348- (instancetype _Nonnull)initWithConversationID:(NSString *_Nonnull)aConversationId
350 ext:(NSDictionary *_Nullable)aExt;
Definition: AgoraChatMessageBody.h:33
Definition: AgoraChatMessage.h:87
Definition: AgoraChatMessage.h:62
NSInteger pinTime
Definition: AgoraChatMessage.h:65
NSString *_Nonnull operatorId
Definition: AgoraChatMessage.h:63
Definition: AgoraChatMessageReaction.h:18
Definition: AgoraChatThread.h:19