9#import <Foundation/Foundation.h>
10#import "AgoraChatCommonDefs.h"
11#import "AgoraChatContactManagerDelegate.h"
12#import "AgoraChatContact.h"
13#import "AgoraChatCursorResult.h"
25#pragma mark - Delegate
35 delegateQueue:(dispatch_queue_t)aQueue;
43- (void)removeDelegate:(
id _Nonnull)aDelegate;
46#pragma mark - Contact Operations
79- (void)setContactRemark:(NSString* _Nonnull)userId remark:(NSString*_Nullable)remark completion:(
void (^_Nullable)(
AgoraChatContact* _Nullable contact,
AgoraChatError * _Nullable aError))aCompletionBlock;
102- (void)getAllContactsFromServerWithCompletion:(
void (^_Nullable)(NSArray<
AgoraChatContact *>* _Nullable aList,
AgoraChatError* _Nullable aError))aCompletionBlock;
127- (void)getContactsFromServerWithCompletion:(
void (^)(NSArray<NSString *> *_Nullable aList,
AgoraChatError *aError_Nullable ))aCompletionBlock;
139- (NSArray<NSString *> *_Nullable )getContactsFromServerWithError:(
AgoraChatError **_Nullable )pError;
152- (
AgoraChatError *_Nullable )addContact:(NSString *_Nonnull)aUsername
153 message:(NSString *_Nullable )aMessage;
166- (void)addContact:(NSString *_Nonnull)aUsername
167 message:(NSString *_Nullable )aMessage
168 completion:(
void (^_Nullable )(NSString *_Nullable aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
181- (
AgoraChatError *_Nullable )deleteContact:(NSString *_Nonnull)aUsername
182 isDeleteConversation:(BOOL)aIsDeleteConversation;
195- (void)deleteContact:(NSString *_Nonnull)aUsername
196 isDeleteConversation:(BOOL)aIsDeleteConversation
197 completion:(
void (^_Nullable )(NSString *_Nullable aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
209- (void)approveFriendRequestFromUser:(NSString *_Nonnull)aUsername
210 completion:(
void (^_Nullable )(NSString *_Nullable aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
222- (void)declineFriendRequestFromUser:(NSString *_Nonnull)aUsername
223 completion:(
void (^_Nullable )(NSString *aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
226#pragma mark - Blacklist Operations
245- (void)getBlackListFromServerWithCompletion:(
void (^_Nullable )(NSArray<NSString *> *_Nullable aList,
AgoraChatError *_Nullable aError))aCompletionBlock;
257- (NSArray<NSString *> *_Nullable )getBlackListFromServerWithError:(
AgoraChatError **_Nullable )pError;
270- (
AgoraChatError *_Nullable )addUserToBlackList:(NSString *_Nonnull)aUsername;
283- (void)addUserToBlackList:(NSString *_Nonnull)aUsername
284 completion:(
void (^_Nullable )(NSString *_Nullable aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
296- (
AgoraChatError *_Nullable )removeUserFromBlackList:(NSString *_Nonnull)aUsername;
308- (void)removeUserFromBlackList:(NSString *_Nonnull)aUsername
309 completion:(
void (^_Nullable )(NSString *_Nullable aUsername,
AgoraChatError *_Nullable aError))aCompletionBlock;
321- (
AgoraChatError *_Nullable )acceptInvitationForUsername:(NSString *_Nonnull)aUsername;
338- (
AgoraChatError *_Nullable )declineInvitationForUsername:(NSString *_Nonnull)aUsername;
340#pragma mark - Other platform
354- (NSArray<NSString *> *_Nullable )getSelfIdsOnOtherPlatformWithError:(
AgoraChatError **_Nullable )pError;
366- (void)getSelfIdsOnOtherPlatformWithCompletion:(
void (^_Nullable)(NSArray<NSString *> *_Nullable aList,
AgoraChatError *_Nullable aError))aCompletionBlock;
Definition: AgoraChatCursorResult.h:16
Definition: AgoraChatError.h:18