HyphenateChatSDK  4.6.0
EMMultiDevicesDelegate.h
1 
15 #import <Foundation/Foundation.h>
16 #import "EMConversation.h"
17 
29 typedef NS_ENUM(NSInteger, EMMultiDevicesEvent) {
30  EMMultiDevicesEventUnknow = -1,
31  EMMultiDevicesEventContactRemove = 2,
32  EMMultiDevicesEventContactAccept = 3,
33  EMMultiDevicesEventContactDecline = 4,
34  EMMultiDevicesEventContactBan = 5,
35  EMMultiDevicesEventContactAllow = 6,
37  EMMultiDevicesEventGroupCreate = 10,
38  EMMultiDevicesEventGroupDestroy = 11,
39  EMMultiDevicesEventGroupJoin = 12,
40  EMMultiDevicesEventGroupLeave = 13,
41  EMMultiDevicesEventGroupApply = 14,
42  EMMultiDevicesEventGroupApplyAccept = 15,
43  EMMultiDevicesEventGroupApplyDecline = 16,
44  EMMultiDevicesEventGroupInvite = 17,
45  EMMultiDevicesEventGroupInviteAccept = 18,
46  EMMultiDevicesEventGroupInviteDecline = 19,
47  EMMultiDevicesEventGroupKick = 20,
48  EMMultiDevicesEventGroupBan = 21,
49  EMMultiDevicesEventGroupAllow = 22,
50  EMMultiDevicesEventGroupBlock = 23,
51  EMMultiDevicesEventGroupUnBlock = 24,
52  EMMultiDevicesEventGroupAssignOwner = 25,
53  EMMultiDevicesEventGroupAddAdmin = 26,
54  EMMultiDevicesEventGroupRemoveAdmin = 27,
55  EMMultiDevicesEventGroupAddMute = 28,
56  EMMultiDevicesEventGroupRemoveMute = 29,
58  EMMultiDevicesEventGroupAddWhiteList = 30,
59  EMMultiDevicesEventGroupRemoveWhiteList = 31,
60  EMMultiDevicesEventGroupAllBan = 32,
61  EMMultiDevicesEventGroupRemoveAllBan = 33,
62  EMMultiDevicesEventGroupDisabled = 34,
63  EMMultiDevicesEventGroupAble = 35,
66  EMMultiDevicesEventChatThreadCreate = 40,
67  EMMultiDevicesEventChatThreadDestroy = 41,
68  EMMultiDevicesEventChatThreadJoin = 42,
69  EMMultiDevicesEventChatThreadLeave = 43,
70  EMMultiDevicesEventChatThreadUpdate = 44,
71  EMMultiDevicesEventChatThreadKick = 45,
72  EMMultiDevicesEventGroupMemberAttributesChanged = 52,
73  EMMultiDevicesEventConversationPinned = 60,
74  EMMultiDevicesEventConversationUnpinned = 61,
75  EMMultiDevicesEventConversationDelete = 62,
76  EMMultiDevicesEventConversationUpdateMark = 63,
77 };
78 
79 @protocol EMMultiDevicesDelegate <NSObject>
80 
81 @optional
82 
98 - (void)multiDevicesContactEventDidReceive:(EMMultiDevicesEvent)aEvent
99  username:(NSString * _Nonnull)aUsername
100  ext:(NSString * _Nullable)aExt;
101 
117 - (void)multiDevicesGroupEventDidReceive:(EMMultiDevicesEvent)aEvent
118  groupId:(NSString * _Nonnull)aGroupId
119  ext:(id _Nullable)aExt;
136 - (void)multiDevicesChatThreadEventDidReceive:(EMMultiDevicesEvent)aEvent
137  threadId:(NSString * _Nonnull)aThreadId
138  ext:(id _Nullable)aExt;
139 
152 - (void)multiDevicesUndisturbEventNotifyFormOtherDeviceData:(NSString *_Nullable)undisturbData;
166 -(void)multiDevicesMessageBeRemoved:(NSString *_Nonnull)conversationId deviceId:(NSString *_Nonnull)deviceId;
167 
183 - (void)multiDevicesConversationEvent:(EMMultiDevicesEvent)event conversationId:(NSString *_Nonnull)conversationId conversationType:(EMConversationType)conversationType;
184 
185 @end
Definition: EMMultiDevicesDelegate.h:79