9#import <Foundation/Foundation.h>
10#import "AgoraChatThreadManagerDelegate.h"
11#import "AgoraChatThread.h"
12#import "AgoraChatCursorResult.h"
14NS_ASSUME_NONNULL_BEGIN
18#pragma mark - Delegate
28 delegateQueue:(_Nullable dispatch_queue_t)aQueue;
39#pragma mark - Get Thread
46- (void)getChatThreadFromSever:(NSString *)threadId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
54- (void)getJoinedChatThreadsFromServerWithCursor:(NSString *)aCursor
55 pageSize:(NSInteger)aPageSize
65- (void)getChatThreadsFromServerWithParentId:(NSString *)parentId cursor:(NSString *)aCursor pageSize:(NSInteger)aPageSize completion:(
void (^)(
AgoraChatCursorResult<
AgoraChatThread*> * _Nullable result,
AgoraChatError * _Nullable aError))aCompletionBlock;
74- (void)getJoinedChatThreadsFromServerWithParentId:(NSString *)parentId cursor:(NSString *)aCursor pageSize:(NSInteger)aPageSize completion:(
void (^)(
AgoraChatCursorResult<
AgoraChatThread*> * _Nullable result,
AgoraChatError * _Nullable aError))aCompletionBlock;
83- (void)getChatThreadMemberListFromServerWithId:(NSString *)threadId cursor:(NSString *)aCursor pageSize:(NSInteger)pageSize completion:(
void (^)(
AgoraChatCursorResult<NSString*> * _Nullable aResult,
AgoraChatError * _Nullable aError))aCompletionBlock;
91- (void)getLastMessageFromSeverWithChatThreads:(NSArray <NSString *>*)threadIds completion:(
void (^)(NSDictionary<NSString*,
AgoraChatMessage*>* _Nullable messageMap,
AgoraChatError * _Nullable aError))aCompletionBlock;
99- (void)removeMemberFromChatThread:(NSString *)aUser
100 threadId:(NSString *)athreadId
101 completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
109- (void)updateChatThreadName:(NSString *)name
110 threadId:(NSString *)athreadId
111 completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
120- (void)createChatThread:(NSString *)threadName messageId:(NSString *)messageId parentId:(NSString *)parentId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
127- (void)joinChatThread:(NSString *)threadId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
135- (void)leaveChatThread:(NSString *)athreadId completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
143- (void)destroyChatThread:(NSString *)athreadId completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
Definition: AgoraChatCursorResult.h:16
Definition: AgoraChatError.h:18
Definition: AgoraChatMessage.h:87
Definition: AgoraChatThread.h:19
Definition: AgoraChatThreadManagerDelegate.h:18
Definition: IAgoraChatThreadManager.h:15