NIMSDK-iOS
载入中...
搜索中...
未找到
NIMChatroomMemberRequest.h
浏览该文件的文档.
1//
2// NIMChatroomMemberRequest.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2016年 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
14
15/**
16 * 聊天室成员类型
17 */
18typedef NS_ENUM(NSInteger, NIMChatroomFetchMemberType){
19 /**
20 * 聊天室固定成员,包括创建者,管理员,普通等级用户,受限用户(禁言+黑名单),有数量上限
21 */
23 /**
24 * 聊天室临时成员,只有在线时才能在列表中看到,数量无上限
25 */
27 /**
28 * 聊天室在线的固定成员
29 */
31 /**
32 * 聊天室非固定成员(反向查询)
33 */
35};
36
37
38/**
39 * 聊天室成员信息修改字段
40 */
41typedef NS_ENUM(NSInteger, NIMChatroomMemberInfoUpdateTag) {
42 /**
43 * 聊天室成员昵称信息
44 */
46 /**
47 * 聊天室成员头像信息
48 */
50 /**
51 * 聊天室成员扩展信息
52 */
54};
55
56
57/**
58 * 聊天室获取成员请求
59 */
60@interface NIMChatroomMemberRequest : NSObject
61
62/**
63 * 聊天室ID
64 */
65@property (nonatomic,copy) NSString *roomId;
66
67/**
68 * 聊天室成员类型
69 */
70@property (nonatomic,assign) NIMChatroomFetchMemberType type;
71
72/**
73 * 最后一位成员锚点,不包括此成员。填nil会使用当前服务器最新时间开始查询,即第一页。
74 */
75@property (nullable,nonatomic,strong) NIMChatroomMember *lastMember;
76
77/**
78 * 获取聊天室成员个数
79 */
80@property (nonatomic,assign) NSUInteger limit;
81
82
83@end
84
85
86
87
88/**
89 * 根据用户ID获取聊天室成员请求
90 */
91@interface NIMChatroomMembersByIdsRequest : NSObject
92
93/**
94 * 聊天室ID
95 */
96@property (nonatomic,copy) NSString *roomId;
97
98/**
99 * 用户ID列表,最多20个
100 */
101@property (nonatomic,copy) NSArray<NSString *> *userIds;
102
103
104@end
105
106
107
108
109
110/**
111 * 聊天室成员标记请求
112 */
114
115/**
116 * 聊天室ID
117 */
118@property (nonatomic,copy) NSString *roomId;
119
120/**
121 * 用户ID
122 */
123@property (nonatomic,copy) NSString *userId;
124
125/**
126 * 标记是否有效
127 */
128@property (nonatomic,assign) BOOL enable;
129
130/**
131 * 操作通知事件扩展
132 */
133@property (nullable,nonatomic,copy) NSString *notifyExt;
134
135@end
136
137
138
139/**
140 * 聊天室成员信息修改请求
141 */
143
144/**
145 * 聊天室ID
146 */
147@property (nonatomic,copy) NSString *roomId;
148
149/**
150 * 需要更新的信息,修改传入的数据键值对是 {@(NIMChatroomMemberInfoUpdateTag) : NSString},无效数据将被过滤
151 */
152@property (nonatomic,copy) NSDictionary *updateInfo;
153
154/**
155 * 是否需要通知
156 */
157@property (nonatomic,assign) BOOL needNotify;
158
159/**
160 * 操作通知事件扩展
161 */
162@property (nullable,nonatomic,copy) NSString *notifyExt;
163
164/**
165 * 更新的信息是否需要在服务器做持久化,只对固定成员生效,默认为 NO
166 */
167@property (nonatomic,assign) BOOL needSave;
168
169/**
170 * 对某些资料内容另外的反垃圾的业务ID
171 */
172@property (nonatomic,strong) NSString *antispamBusinessId;
173
174@end
175
176
177/**
178 * 聊天室踢人请求
179 */
180@interface NIMChatroomMemberKickRequest : NSObject
181/**
182 * 聊天室ID
183 */
184@property (nonatomic,copy) NSString *roomId;
185
186/**
187 * 用户ID,仅管理员可以踢人;如userId是管理员仅创建者可以踢.
188 */
189@property (nonatomic,copy) NSString *userId;
190
191/**
192 * 被踢通知扩展字段
193 */
194@property (nullable,nonatomic,copy) NSString *notifyExt;
195
196@end
197
198NS_ASSUME_NONNULL_END
NIMChatroomFetchMemberType
Definition: NIMChatroomMemberRequest.h:18
@ NIMChatroomFetchMemberTypeTemp
Definition: NIMChatroomMemberRequest.h:26
@ NIMChatroomFetchMemberTypeRegular
Definition: NIMChatroomMemberRequest.h:22
@ NIMChatroomFetchMemberTypeRegularOnline
Definition: NIMChatroomMemberRequest.h:30
@ NIMChatroomFetchMemberTypeUnRegularReversedOrder
Definition: NIMChatroomMemberRequest.h:34
NIMChatroomMemberInfoUpdateTag
Definition: NIMChatroomMemberRequest.h:41
@ NIMChatroomMemberInfoUpdateTagAvatar
Definition: NIMChatroomMemberRequest.h:49
@ NIMChatroomMemberInfoUpdateTagExt
Definition: NIMChatroomMemberRequest.h:53
@ NIMChatroomMemberInfoUpdateTagNick
Definition: NIMChatroomMemberRequest.h:45
Definition: NIMChatroomMember.h:47
Definition: NIMChatroomMemberRequest.h:143
Definition: NIMChatroomMemberRequest.h:181
Definition: NIMChatroomMemberRequest.h:61
NIMChatroomMember * lastMember
Definition: NIMChatroomMemberRequest.h:75
NSUInteger limit
Definition: NIMChatroomMemberRequest.h:80
NSString * roomId
Definition: NIMChatroomMemberRequest.h:65
NIMChatroomFetchMemberType type
Definition: NIMChatroomMemberRequest.h:70
Definition: NIMChatroomMemberRequest.h:114
Definition: NIMChatroomMemberRequest.h:92