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
34 delegateQueue:(_Nullable dispatch_queue_t)aQueue;
50#pragma mark - Get Thread
62- (void)getChatThreadFromSever:(NSString *)threadId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
76- (void)getJoinedChatThreadsFromServerWithCursor:(NSString *)aCursor
77 pageSize:(NSInteger)aPageSize
94- (void)getChatThreadsFromServerWithParentId:(NSString *)parentId cursor:(NSString *)aCursor pageSize:(NSInteger)aPageSize completion:(
void (^)(
AgoraChatCursorResult<
AgoraChatThread*> * _Nullable result,
AgoraChatError * _Nullable aError))aCompletionBlock;
110- (void)getJoinedChatThreadsFromServerWithParentId:(NSString *)parentId cursor:(NSString *)aCursor pageSize:(NSInteger)aPageSize completion:(
void (^)(
AgoraChatCursorResult<
AgoraChatThread*> * _Nullable result,
AgoraChatError * _Nullable aError))aCompletionBlock;
126- (void)getChatThreadMemberListFromServerWithId:(NSString *)threadId cursor:(NSString *)aCursor pageSize:(NSInteger)pageSize completion:(
void (^)(
AgoraChatCursorResult<NSString*> * _Nullable aResult,
AgoraChatError * _Nullable aError))aCompletionBlock;
139- (void)getLastMessageFromSeverWithChatThreads:(NSArray <NSString *>*)threadIds completion:(
void (^)(NSDictionary<NSString*,
AgoraChatMessage*>* _Nullable messageMap,
AgoraChatError * _Nullable aError))aCompletionBlock;
153- (void)removeMemberFromChatThread:(NSString *)aUser
154 threadId:(NSString *)athreadId
155 completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
169- (void)updateChatThreadName:(NSString *)name
170 threadId:(NSString *)athreadId
171 completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
187- (void)createChatThread:(NSString *)threadName messageId:(NSString *)messageId parentId:(NSString *)parentId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
199- (void)joinChatThread:(NSString *)threadId completion:(
void (^)(
AgoraChatThread *_Nullable thread,
AgoraChatError * _Nullable aError))aCompletionBlock;
212- (void)leaveChatThread:(NSString *)athreadId completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
225- (void)destroyChatThread:(NSString *)athreadId completion:(
void (^)(
AgoraChatError * _Nullable aError))aCompletionBlock;
Definition: AgoraChatCursorResult.h:27
Definition: AgoraChatError.h:27
Definition: AgoraChatMessage.h:67
Definition: AgoraChatThread.h:14
Definition: AgoraChatThreadManagerDelegate.h:14
Definition: IAgoraChatThreadManager.h:15