NIMSDK-iOS
载入中...
搜索中...
未找到
NIMTeamNotificationContent.h
浏览该文件的文档.
1//
2// NIMTeamNotificationContent.h
3// NIMLib
4//
5// Created by Netease
6// Copyright (c) 2015 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14/**
15 * 群操作类型
16 */
17typedef NS_ENUM(NSInteger, NIMTeamOperationType){
18 /**
19 * 邀请成员
20 */
22 /**
23 * 移除成员
24 */
26 /**
27 * 离开群
28 */
30 /**
31 * 更新群信息
32 */
34 /**
35 * 解散群
36 */
38 /**
39 * 高级群申请加入成功
40 */
42 /**
43 * 高级群群主转移群主身份
44 */
46 /**
47 * 添加管理员
48 */
50 /**
51 * 移除管理员
52 */
54 /**
55 * 高级群接受邀请进群
56 */
58
59 /**
60 * 群内禁言/解禁
61 */
63
64};
65
66
67/**
68 * 群信息更新字段
69 */
70typedef NS_ENUM(NSInteger, NIMTeamUpdateTag){
71 /**
72 * 群名
73 */
75 /**
76 * 群简介
77 */
79 /**
80 * 群公告
81 */
83 /**
84 * 群验证方式
85 */
87 /**
88 * 客户端自定义拓展字段
89 */
91 /**
92 * 服务器自定义拓展字段
93 * @discussion SDK 无法直接修改这个字段, 请调用服务器接口
94 */
96 /**
97 * 头像
98 */
100 /**
101 * 被邀请模式
102 */
104 /**
105 * 邀请权限,仅高级群有效
106 */
108 /**
109 * 更新群信息权限,仅高级群有效
110 */
112 /**
113 * 更新群客户端自定义拓展字段权限
114 */
116 /**
117 * 群禁言模式
118 * @discussion 0: 禁言关闭 1: 全员禁言,不包括管理员
119 */
121 /**
122 * 群全体禁言模式
123 * @discussion 参考NIMTeamAllMuteMode定义。0: 禁言关闭 1: 全员禁言,不包括管理员 3: 全员禁言,包括群组和管理员
124 */
126 /**
127 * 对某些资料内容另外的反垃圾的业务ID
128 */
130};
131
132
133
134/**
135 * 群通知内容
136 */
138/**
139 * 操作发起者ID
140 */
141@property (nullable,nonatomic,copy,readonly) NSString *sourceID;
142
143/**
144 * 操作类型
145 */
146@property (nonatomic,assign,readonly) NIMTeamOperationType operationType;
147
148/**
149 * 被操作者ID列表
150 */
151@property (nullable,nonatomic,copy,readonly) NSArray<NSString *> *targetIDs;
152
153/**
154 * 群通知下发的自定义扩展信息
155 */
156@property (nullable,nonatomic,readonly) NSString *notifyExt;
157
158/**
159 * 额外信息
160 * @discussion 群更新时 attachment 为 NIMUpdateTeamInfoAttachment,
161 * 禁言时 attachment 为 NIMMuteTeamMemberAttachment
162 */
163@property (nullable,nonatomic,strong,readonly) id attachment;
164@end
165
166
167/**
168 * 更新群信息的额外信息
169 */
170@interface NIMUpdateTeamInfoAttachment : NSObject
171
172/**
173 * 群内修改的信息键值对
174 * @discussion NSNumebr 取值范围为 NIMTeamUpdateTag 枚举类型
175 */
176@property (nullable,nonatomic,copy,readonly) NSDictionary<NSNumber *,NSString *> *values;
177@end
178
179
180/**
181 * 禁言通知的额外信息
182 */
183@interface NIMMuteTeamMemberAttachment : NSObject
184
185/**
186 * 是否被禁言
187 * @discussion YES 为禁言,NO 为 解除禁言
188 */
189@property (nonatomic,assign,readonly) BOOL flag;
190@end
191
192
193
194NS_ASSUME_NONNULL_END
NIMTeamUpdateTag
Definition: NIMTeamNotificationContent.h:70
@ NIMTeamUpdateTagServerCustom
Definition: NIMTeamNotificationContent.h:95
@ NIMTeamUpdateTagInviteMode
Definition: NIMTeamNotificationContent.h:107
@ NIMTeamUpdateTagAntispamBusinessId
Definition: NIMTeamNotificationContent.h:129
@ NIMTeamUpdateTagAllMuteMode
Definition: NIMTeamNotificationContent.h:125
@ NIMTeamUpdateTagMuteMode
Definition: NIMTeamNotificationContent.h:120
@ NIMTeamUpdateTagUpdateInfoMode
Definition: NIMTeamNotificationContent.h:111
@ NIMTeamUpdateTagBeInviteMode
Definition: NIMTeamNotificationContent.h:103
@ NIMTeamUpdateTagAvatar
Definition: NIMTeamNotificationContent.h:99
@ NIMTeamUpdateTagAnouncement
Definition: NIMTeamNotificationContent.h:82
@ NIMTeamUpdateTagClientCustom
Definition: NIMTeamNotificationContent.h:90
@ NIMTeamUpdateTagJoinMode
Definition: NIMTeamNotificationContent.h:86
@ NIMTeamUpdateTagIntro
Definition: NIMTeamNotificationContent.h:78
@ NIMTeamUpdateTagUpdateClientCustomMode
Definition: NIMTeamNotificationContent.h:115
@ NIMTeamUpdateTagName
Definition: NIMTeamNotificationContent.h:74
NIMTeamOperationType
Definition: NIMTeamNotificationContent.h:17
@ NIMTeamOperationTypeKick
Definition: NIMTeamNotificationContent.h:25
@ NIMTeamOperationTypeDismiss
Definition: NIMTeamNotificationContent.h:37
@ NIMTeamOperationTypeAcceptInvitation
Definition: NIMTeamNotificationContent.h:57
@ NIMTeamOperationTypeApplyPass
Definition: NIMTeamNotificationContent.h:41
@ NIMTeamOperationTypeAddManager
Definition: NIMTeamNotificationContent.h:49
@ NIMTeamOperationTypeRemoveManager
Definition: NIMTeamNotificationContent.h:53
@ NIMTeamOperationTypeTransferOwner
Definition: NIMTeamNotificationContent.h:45
@ NIMTeamOperationTypeUpdate
Definition: NIMTeamNotificationContent.h:33
@ NIMTeamOperationTypeInvite
Definition: NIMTeamNotificationContent.h:21
@ NIMTeamOperationTypeLeave
Definition: NIMTeamNotificationContent.h:29
@ NIMTeamOperationTypeMute
Definition: NIMTeamNotificationContent.h:62
Definition: NIMTeamNotificationContent.h:184
Definition: NIMNotificationContent.h:46
Definition: NIMTeamNotificationContent.h:138
NSString * sourceID
Definition: NIMTeamNotificationContent.h:141
NSString * notifyExt
Definition: NIMTeamNotificationContent.h:156
id attachment
Definition: NIMTeamNotificationContent.h:163
NSArray< NSString * > * targetIDs
Definition: NIMTeamNotificationContent.h:151
NIMTeamOperationType operationType
Definition: NIMTeamNotificationContent.h:146
Definition: NIMTeamNotificationContent.h:171