#import <IEMContactManager.h>
- (EMError *) acceptInvitationForUsername: |
|
(NSString *) |
aUsername |
|
|
required |
Agree invitation
Synchronization method will block the current thread
- Parameters
-
- Returns
- Error
- (EMError *) addContact: |
|
(NSString *) |
aUsername |
message: |
|
(NSString *) |
aMessage |
|
|
| |
|
required |
Add a contact
Synchronization method will block the current thread
- Parameters
-
aUsername | The user to add |
aMessage | Friend invitation message |
- Returns
- Error
Add delegate
- Parameters
-
aDelegate | Delegate |
aQueue | The queue of call delegate method |
- (EMError *) addUserToBlackList: |
|
(NSString *) |
aUsername |
relationshipBoth: |
|
(BOOL) |
aBoth |
|
|
| |
|
required |
Add user to blacklist
Synchronization method will block the current thread
- Parameters
-
aUsername | The user to add |
aBoth | Whether block messages from me to the user which is added to the black list |
- Returns
- Error
- (void) asyncAcceptInvitationForUsername: |
|
(NSString *) |
aUsername |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Agree invitation
- Parameters
-
aUsername | Applicants |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncAddContact: |
|
(NSString *) |
aUsername |
message: |
|
(NSString *) |
aMessage |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Add a contact
- Parameters
-
aUsername | The user to add |
aMessage | Friend invitation message |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncAddUserToBlackList: |
|
(NSString *) |
aUsername |
relationshipBoth: |
|
(BOOL) |
aBoth |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Add user to blacklist
- Parameters
-
aUsername | The user to add |
aBoth | Whether block messages from me to the user which is added to the black list |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncDeclineInvitationForUsername: |
|
(NSString *) |
aUsername |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Decline invitation
- Parameters
-
aUsername | Applicants |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncDeleteContact: |
|
(NSString *) |
aUsername |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Delete friend
- Parameters
-
aUsername | The user to delete |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncGetBlackListFromServer: |
|
(void(^)(NSArray *aList)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Get the blacklist from the server
- Parameters
-
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncGetContactsFromServer: |
|
(void(^)(NSArray *aList)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Get all the friends from the server
- Parameters
-
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncRemoveUserFromBlackList: |
|
(NSString *) |
aUsername |
success: |
|
(void(^)()) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Remove user from blacklist
- Parameters
-
aUsername | The user to remove from blacklist |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (EMError *) declineInvitationForUsername: |
|
(NSString *) |
aUsername |
|
|
required |
Decline invitation
Synchronization method will block the current thread
- Parameters
-
- Returns
- Error
- (EMError *) deleteContact: |
|
(NSString *) |
aUsername |
|
|
required |
Delete friend
Synchronization method will block the current thread
- Parameters
-
aUsername | The user to delete |
- Returns
- Error
- (NSArray *) getBlackList |
|
|
|
|
required |
Get the blacklist from memory
- Returns
- Blacklist<EMGroup>
- (NSArray *) getBlackListFromDB |
|
|
|
|
required |
Get the blacklist from the DB
- Returns
- Blacklist<NSString>
- (NSArray *) getBlackListFromServerWithError: |
|
(EMError **) |
pError |
|
|
required |
Get the blacklist from the server
Synchronization method will block the current thread
- Parameters
-
- Returns
- Blacklist<NSString>
- (NSArray *) getContacts |
|
|
|
|
required |
Get all friends from memory
- Returns
- Contact list<EMGroup>
- (NSArray *) getContactsFromDB |
|
|
|
|
required |
Get all the friends from the DB
- Returns
- Contact list<NSString>
- (NSArray *) getContactsFromServerWithError: |
|
(EMError **) |
pError |
|
|
required |
Get all the friends from the server
Synchronization method will block the current thread
- Parameters
-
- Returns
- Contact list<NSString>
- (void) removeDelegate: |
|
(id) |
aDelegate |
|
|
required |
Remove delegate
- Parameters
-
- (EMError *) removeUserFromBlackList: |
|
(NSString *) |
aUsername |
|
|
required |
Remove user from blacklist
Synchronization method will block the current thread
- Parameters
-
aUsername | The user to remove from blacklist |
- Returns
- Error
The documentation for this protocol was generated from the following file: