15 #import <Foundation/Foundation.h> 17 #import "EMCommonDefs.h" 18 #import "EMChatroomManagerDelegate.h" 19 #import "EMChatroomOptions.h" 20 #import "EMChatroom.h" 21 #import "EMPageResult.h" 23 #import "EMCursorResult.h" 38 #pragma mark - Delegate 54 delegateQueue:(dispatch_queue_t)aQueue;
69 #pragma mark - Fetch Chatrooms 94 - (
EMPageResult *)getChatroomsFromServerWithPage:(NSInteger)aPageNum
95 pageSize:(NSInteger)aPageSize
115 - (void)getChatroomsFromServerWithPage:(NSInteger)aPageNum
116 pageSize:(NSInteger)aPageSize
119 #pragma mark - Create 150 - (
EMChatroom *)createChatroomWithSubject:(NSString *)aSubject
151 description:(NSString *)aDescription
152 invitees:(NSArray *)aInvitees
153 message:(NSString *)aMessage
154 maxMembersCount:(NSInteger)aMaxMembersCount
180 - (void)createChatroomWithSubject:(NSString *)aSubject
181 description:(NSString *)aDescription
182 invitees:(NSArray *)aInvitees
183 message:(NSString *)aMessage
184 maxMembersCount:(NSInteger)aMaxMembersCount
187 #pragma mark - Edit Chatroom 210 - (
EMChatroom *)joinChatroom:(NSString *)aChatroomId
228 - (void)joinChatroom:(NSString *)aChatroomId
250 - (void)leaveChatroom:(NSString *)aChatroomId
268 - (void)leaveChatroom:(NSString *)aChatroomId
269 completion:(
void (^)(
EMError *aError))aCompletionBlock;
290 - (
EMError *)destroyChatroom:(NSString *)aChatroomId;
306 - (void)destroyChatroom:(NSString *)aChatroomId
307 completion:(
void (^)(
EMError *aError))aCompletionBlock;
332 - (
EMChatroom *)getChatroomSpecificationFromServerWithId:(NSString *)aChatroomId
349 - (void)getChatroomSpecificationFromServerWithId:(NSString *)aChatroomId
374 - (
EMCursorResult *)getChatroomMemberListFromServerWithId:(NSString *)aChatroomId
375 cursor:(NSString *)aCursor
376 pageSize:(NSInteger)aPageSize
398 - (void)getChatroomMemberListFromServerWithId:(NSString *)aChatroomId
399 cursor:(NSString *)aCursor
400 pageSize:(NSInteger)aPageSize
422 - (NSArray *)getChatroomBlacklistFromServerWithId:(NSString *)aChatroomId
423 pageNumber:(NSInteger)aPageNum
424 pageSize:(NSInteger)aPageSize
446 - (void)getChatroomBlacklistFromServerWithId:(NSString *)aChatroomId
447 pageNumber:(NSInteger)aPageNum
448 pageSize:(NSInteger)aPageSize
449 completion:(
void (^)(NSArray *aList,
EMError *aError))aCompletionBlock;
470 - (NSArray *)getChatroomMuteListFromServerWithId:(NSString *)aChatroomId
471 pageNumber:(NSInteger)aPageNum
472 pageSize:(NSInteger)aPageSize
494 - (void)getChatroomMuteListFromServerWithId:(NSString *)aChatroomId
495 pageNumber:(NSInteger)aPageNum
496 pageSize:(NSInteger)aPageSize
497 completion:(
void (^)(NSArray *aList,
EMError *aError))aCompletionBlock;
516 - (NSString *)getChatroomAnnouncementWithId:(NSString *)aChatroomId
534 - (void)getChatroomAnnouncementWithId:(NSString *)aChatroomId
535 completion:(
void (^)(NSString *aAnnouncement,
EMError *aError))aCompletionBlock;
562 - (
EMChatroom *)updateSubject:(NSString *)aSubject
563 forChatroom:(NSString *)aChatroomId
583 - (void)updateSubject:(NSString *)aSubject
584 forChatroom:(NSString *)aChatroomId
610 - (
EMChatroom *)updateDescription:(NSString *)aDescription
611 forChatroom:(NSString *)aChatroomId
631 - (void)updateDescription:(NSString *)aDescription
632 forChatroom:(NSString *)aChatroomId
658 - (
EMChatroom *)removeMembers:(NSArray *)aMembers
659 fromChatroom:(NSString *)aChatroomId
679 - (void)removeMembers:(NSArray *)aMembers
680 fromChatroom:(NSString *)aChatroomId
706 - (
EMChatroom *)blockMembers:(NSArray *)aMembers
707 fromChatroom:(NSString *)aChatroomId
727 - (void)blockMembers:(NSArray *)aMembers
728 fromChatroom:(NSString *)aChatroomId
755 - (
EMChatroom *)unblockMembers:(NSArray *)aMembers
756 fromChatroom:(NSString *)aChatroomId
776 - (void)unblockMembers:(NSArray *)aMembers
777 fromChatroom:(NSString *)aChatroomId
803 - (
EMChatroom *)updateChatroomOwner:(NSString *)aChatroomId
804 newOwner:(NSString *)aNewOwner
824 - (void)updateChatroomOwner:(NSString *)aChatroomId
825 newOwner:(NSString *)aNewOwner
852 toChatroom:(NSString *)aChatroomId
872 - (void)addAdmin:(NSString *)aAdmin
873 toChatroom:(NSString *)aChatroomId
899 - (
EMChatroom *)removeAdmin:(NSString *)aAdmin
900 fromChatroom:(NSString *)aChatroomId
920 - (void)removeAdmin:(NSString *)aAdmin
921 fromChatroom:(NSString *)aChatroomId
950 - (
EMChatroom *)muteMembers:(NSArray *)aMuteMembers
951 muteMilliseconds:(NSInteger)aMuteMilliseconds
952 fromChatroom:(NSString *)aChatroomId
975 - (void)muteMembers:(NSArray *)aMuteMembers
976 muteMilliseconds:(NSInteger)aMuteMilliseconds
977 fromChatroom:(NSString *)aChatroomId
1003 - (
EMChatroom *)unmuteMembers:(NSArray *)aMembers
1004 fromChatroom:(NSString *)aChatroomId
1025 - (void)unmuteMembers:(NSArray *)aMembers
1026 fromChatroom:(NSString *)aChatroomId
1050 - (
EMChatroom *)updateChatroomAnnouncementWithId:(NSString *)aChatroomId
1051 announcement:(NSString *)aAnnouncement
1070 - (void)updateChatroomAnnouncementWithId:(NSString *)aChatroomId
1071 announcement:(NSString *)aAnnouncement
1074 #pragma mark - EM_DEPRECATED_IOS 3.3.0 1099 - (
EMChatroom *)fetchChatroomInfo:(NSString *)aChatroomId
1100 includeMembersList:(BOOL)aIncludeMembersList
1101 error:(
EMError **)pError EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -[
IEMChatroomManager getChatroomSpecificationFromServerWithId:error:]");
1119 - (void)getChatroomSpecificationFromServerByID:(NSString *)aChatroomId
1120 includeMembersList:(BOOL)aIncludeMembersList
1121 completion:(
void (^)(
EMChatroom *aChatroom,
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -[
IEMChatroomManager getChatroomSpecificationFromServerWithId:completion:]");
1123 #pragma mark - EM_DEPRECATED_IOS 3.2.3 1138 #pragma mark - EM_DEPRECATED_IOS < 3.2.3 1159 - (NSArray *)getAllChatroomsFromServerWithError:(
EMError **)pError __deprecated_msg("Use -getChatroomsFromServerWithPage");
1173 - (void)getAllChatroomsFromServerWithCompletion:(
void (^)(NSArray *aList,
EMError *aError))aCompletionBlock __deprecated_msg("Use -getChatroomsFromServerWithPage");
1189 - (void)asyncGetAllChatroomsFromServer:(
void (^)(NSArray *aList))aSuccessBlock
1190 failure:(
void (^)(
EMError *aError))aFailureBlock __deprecated_msg("Use -getAllChatroomsFromServerWithCompletion:");
1209 - (void)asyncJoinChatroom:(NSString *)aChatroomId
1210 success:(
void (^)(
EMChatroom *aRoom))aSuccessBlock
1211 failure:(
void (^)(
EMError *aError))aFailureBlock __deprecated_msg("Use -joinChatroom:completion:");
1232 - (void)asyncLeaveChatroom:(NSString *)aChatroomId
1233 success:(
void (^)(
EMChatroom *aRoom))aSuccessBlock
1234 failure:(
void (^)(
EMError *aError))aFailureBlock __deprecated_msg("Use -leaveChatroom:completion:");
1254 - (void)asyncFetchChatroomInfo:(NSString *)aChatroomId
1255 includeMembersList:(BOOL)aIncludeMembersList
1256 success:(
void (^)(
EMChatroom *aChatroom))aSuccessBlock
1257 failure:(
void (^)(
EMError *aError))aFailureBlock __deprecated_msg("Use -getChatroomSpecificationFromServerByID:includeMembersList:completion:");
Definition: EMChatroomManagerDelegate.h:39
Definition: EMPageResult.h:24
Definition: EMChatroom.h:41
Definition: EMCursorResult.h:24
Definition: IEMChatroomManager.h:34