HyphenateSDK  3.6.1
EMGroupManagerDelegate.h
1 
15 #import <Foundation/Foundation.h>
16 
24 typedef enum{
25  EMGroupLeaveReasonBeRemoved = 0,
26  EMGroupLeaveReasonUserLeave,
27  EMGroupLeaveReasonDestroyed,
28 }EMGroupLeaveReason;
29 
30 @class EMGroup;
31 @class EMGroupSharedFile;
32 
40 @protocol EMGroupManagerDelegate <NSObject>
41 
42 @optional
43 
61 - (void)groupInvitationDidReceive:(NSString *)aGroupId
62  inviter:(NSString *)aInviter
63  message:(NSString *)aMessage;
64 
80 - (void)groupInvitationDidAccept:(EMGroup *)aGroup
81  invitee:(NSString *)aInvitee;
82 
100 - (void)groupInvitationDidDecline:(EMGroup *)aGroup
101  invitee:(NSString *)aInvitee
102  reason:(NSString *)aReason;
103 
121 - (void)didJoinGroup:(EMGroup *)aGroup
122  inviter:(NSString *)aInviter
123  message:(NSString *)aMessage;
124 
138 - (void)didLeaveGroup:(EMGroup *)aGroup
139  reason:(EMGroupLeaveReason)aReason;
140 
156 - (void)joinGroupRequestDidReceive:(EMGroup *)aGroup
157  user:(NSString *)aUsername
158  reason:(NSString *)aReason;
159 
175 - (void)joinGroupRequestDidDecline:(NSString *)aGroupId
176  reason:(NSString *)aReason;
177 
191 - (void)joinGroupRequestDidApprove:(EMGroup *)aGroup;
192 
204 - (void)groupListDidUpdate:(NSArray *)aGroupList;
205 
206 
222 - (void)groupMuteListDidUpdate:(EMGroup *)aGroup
223  addedMutedMembers:(NSArray *)aMutedMembers
224  muteExpire:(NSInteger)aMuteExpire;
225 
239 - (void)groupMuteListDidUpdate:(EMGroup *)aGroup
240  removedMutedMembers:(NSArray *)aMutedMembers;
241 
255 - (void)groupAdminListDidUpdate:(EMGroup *)aGroup
256  addedAdmin:(NSString *)aAdmin;
257 
271 - (void)groupAdminListDidUpdate:(EMGroup *)aGroup
272  removedAdmin:(NSString *)aAdmin;
273 
289 - (void)groupOwnerDidUpdate:(EMGroup *)aGroup
290  newOwner:(NSString *)aNewOwner
291  oldOwner:(NSString *)aOldOwner;
292 
306 - (void)userDidJoinGroup:(EMGroup *)aGroup
307  user:(NSString *)aUsername;
308 
322 - (void)userDidLeaveGroup:(EMGroup *)aGroup
323  user:(NSString *)aUsername;
324 
338 - (void)groupAnnouncementDidUpdate:(EMGroup *)aGroup
339  announcement:(NSString *)aAnnouncement;
340 
354 - (void)groupFileListDidUpdate:(EMGroup *)aGroup
355  addedSharedFile:(EMGroupSharedFile *)aSharedFile;
356 
370 - (void)groupFileListDidUpdate:(EMGroup *)aGroup
371  removedSharedFile:(NSString *)aFileId;
372 
373 #pragma mark - Deprecated methods
374 
392 - (void)didReceiveGroupInvitation:(NSString *)aGroupId
393  inviter:(NSString *)aInviter
394  message:(NSString *)aMessage __deprecated_msg("Use -groupInvitationDidReceive:inviter:message:");
395 
411 - (void)didReceiveAcceptedGroupInvitation:(EMGroup *)aGroup
412  invitee:(NSString *)aInvitee __deprecated_msg("Use -groupInvitationDidAccept:invitee:");
413 
431 - (void)didReceiveDeclinedGroupInvitation:(EMGroup *)aGroup
432  invitee:(NSString *)aInvitee
433  reason:(NSString *)aReason __deprecated_msg("Use -groupInvitationDidDecline:invitee:reason:");
434 
451 - (void)didJoinedGroup:(EMGroup *)aGroup
452  inviter:(NSString *)aInviter
453  message:(NSString *)aMessage __deprecated_msg("Use -didJoinGroup:inviter:message:");
454 
468 - (void)didReceiveLeavedGroup:(EMGroup *)aGroup
469  reason:(EMGroupLeaveReason)aReason __deprecated_msg("Use -didLeaveGroup:reason:");
470 
486 - (void)didReceiveJoinGroupApplication:(EMGroup *)aGroup
487  applicant:(NSString *)aApplicant
488  reason:(NSString *)aReason __deprecated_msg("Use -joinGroupRequestDidReceive:user:reason:");
489 
503 - (void)didReceiveDeclinedJoinGroup:(NSString *)aGroupId
504  reason:(NSString *)aReason __deprecated_msg("Use -joinGroupRequestDidDecline:reason:");
505 
517 - (void)didReceiveAcceptedJoinGroup:(EMGroup *)aGroup __deprecated_msg("Use -joinGroupRequestDidApprove:");
518 
530 - (void)didUpdateGroupList:(NSArray *)aGroupList __deprecated_msg("Use -groupListDidUpdate:");
531 
532 @end
Definition: EMGroup.h:41
Definition: EMGroupSharedFile.h:16
Definition: EMGroupManagerDelegate.h:40