NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatMuteModels.h
浏览该文件的文档.
1//
2// NIMQChatMuteModels.h
3// NIMQChat
4//
5// Created by 陈吉力 on 2024/6/23.
6// Copyright © 2024 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "NIMQChatDefs.h"
13
14NS_ASSUME_NONNULL_BEGIN
15@interface NIMQChatMuteFailedInfo : NSObject
16/**
17 * 账号
18 */
19@property (nonatomic, readonly, copy) NSString *accountId;
20/**
21 * 错误码
22 */
23@property (nonatomic, readonly, assign) NSInteger errorCode;
24/**
25 * 错误描述
26 */
27@property (nonatomic, readonly, copy, nullable) NSString *message;
28@end
29
30@interface NIMQChatServerMuteParam : NSObject
31
32/**
33 * 服务器id。必须大于0
34 */
35@property (nonatomic, assign) unsigned long long serverId;
36
37/**
38 * 方操作类型。可填写禁言和解禁填写自动解禁或者其他值报参数错误
39 */
40@property (nonatomic, assign) NIMQChatMuteOperateType operateType;
41
42/**
43 * 禁言成员列表
44 */
45@property (nonatomic, strong) NSArray *muteAccountIds;
46
47/**
48 * 禁言持续时长 单位:秒。大于0合法
49 */
50@property (nonatomic, assign) NSInteger duration;
51
52/**
53 * 附言
54 */
55@property (nonatomic, copy, nullable) NSString *postscript;
56
57/**
58 * 通知类型。包括只通知被禁言者和全部通知
59 */
60@property (nonatomic, assign) NIMQChatMuteNotifyScope notifyType;
61
62@end
63
64@interface NIMQChatChannelMuteParam : NSObject
65
66/**
67 * 服务器id
68 */
69@property (nonatomic, assign) unsigned long long serverId;
70
71/**
72 * 频道id
73 */
74@property (nonatomic, assign) unsigned long long channelId;
75
76/**
77 * 操作类型。可填写禁言和解禁填写自动解禁或者其他值报参数错误
78 */
79@property (nonatomic, assign) NIMQChatMuteOperateType operateType;
80
81/**
82 * 禁言成员列表
83 */
84@property (nonatomic, strong) NSArray *muteAccountIds;
85
86/**
87 * 禁言持续时长 单位:秒。大于0合法
88 */
89@property (nonatomic, assign) NSInteger duration;
90
91/**
92 * 附言
93 */
94@property (nonatomic, copy, nullable) NSString *postscript;
95
96/**
97 * 通知类型。包括只通知被禁言者和全部通知
98 */
99@property (nonatomic, assign) NIMQChatMuteNotifyScope notifyType;
100
101@end
102
103@interface NIMQChatMuteResult : NSObject
104
105/**
106 * 失败列表,如果全部成功,则没有
107 */
108@property (nonatomic, strong, readonly, nullable) NSArray<NIMQChatMuteFailedInfo *> *failedList;
109@end
110
111@interface NIMQChatMuteInfo : NSObject
112/**
113 * 禁言持续时长 单位:秒
114 */
115@property (nonatomic, assign, readonly) NSInteger duration;
116
117/**
118 * 退出禁言时间 单位:毫秒
119 */
120@property (nonatomic, assign, readonly) NSTimeInterval beReleaseTime;
121
122/**
123 * 禁言的操作时间 单位:毫秒
124 */
125@property (nonatomic, assign, readonly) NSTimeInterval muteOperateTime;
126
127@end
128
130
131/**
132 * 禁言信息
133 */
134@property (nonatomic, strong, readonly) NIMQChatMuteInfo *muteInfo;
135
136@end
137
139
140/**
141 * 禁言信息
142 */
143@property (nonatomic, strong, readonly) NIMQChatMuteInfo *muteInfo;
144
145@end
146
148
149/**
150 * 服务器id
151 */
152@property (nonatomic, assign) unsigned long long serverId;
153
154/**
155 * 分页标记,第一页不传,翻下一页传接口返回的cursor
156 */
157@property (nonatomic, strong, nullable) NSString *cursor;
158
159/**
160 * 查询数量限制
161 */
162@property (nonatomic, assign) NSInteger limit;
163
164@end
165
167
168/**
169 * 服务器id
170 */
171@property (nonatomic, assign) unsigned long long serverId;
172
173/**
174 * 频道id
175 */
176@property (nonatomic, assign) unsigned long long channelId;
177
178/**
179 * 分页标记,第一页不传,翻下一页传接口返回的cursor
180 */
181@property (nonatomic, strong, nullable) NSString *cursor;
182
183/**
184 * 查询数量限制
185 */
186@property (nonatomic, assign) NSInteger limit;
187
188@end
189
191
192/**
193 * 是否有下一页
194 */
195@property (nonatomic, assign, readonly) BOOL hasMore;
196
197/**
198 * 分页标记,第一页不传,翻下一页传接口返回的cursor
199 */
200@property (nonatomic, strong, readonly, nullable) NSString *cursor;
201
202/**
203 * 查询到的成员禁言信息列表
204 */
205@property (nonatomic, strong, readonly, nullable) NSArray<NIMQChatServerMuteMemberInfo *> *members;
206
207@end
208
210
211/**
212 * 是否有下一页
213 */
214@property (nonatomic, assign, readonly) BOOL hasMore;
215
216/**
217 * 分页标记,第一页不传,翻下一页传接口返回的cursor
218 */
219@property (nonatomic, strong, readonly, nullable) NSString *cursor;
220
221/**
222 * 查询到的成员禁言信息列表
223 */
224@property (nonatomic, strong, readonly, nullable) NSArray<NIMQChatChannelMuteMemberInfo *> *members;
225
226@end
227
228NS_ASSUME_NONNULL_END
NIMQChatMuteNotifyScope
Definition: NIMQChatDefs.h:590
NIMQChatMuteOperateType
Definition: NIMQChatDefs.h:561
Definition: NIMQChatChannelMember.h:14
Definition: NIMQChatMuteModels.h:130
Definition: NIMQChatMuteModels.h:65
Definition: NIMQChatMuteModels.h:167
Definition: NIMQChatMuteModels.h:210
Definition: NIMQChatMuteModels.h:148
Definition: NIMQChatMuteModels.h:191
Definition: NIMQChatMuteModels.h:16
NSInteger errorCode
Definition: NIMQChatMuteModels.h:23
NSString * accountId
Definition: NIMQChatMuteModels.h:19
NSString * message
Definition: NIMQChatMuteModels.h:27
Definition: NIMQChatMuteModels.h:112
Definition: NIMQChatMuteModels.h:104
Definition: NIMQChatServerMember.h:15
Definition: NIMQChatMuteModels.h:139
Definition: NIMQChatMuteModels.h:31