NIMSDK-AOS  9.20.15
QChatUpdateChannelBlackWhiteMembersParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
7 
8 import java.util.List;
9 
10 /**
11  * "更新频道黑白名单成员"接口入参
12  */
14 
15  /**
16  * 服务器Id
17  */
18  @NonNull
19  private final Long serverId;
20  /**
21  * 频道Id
22  */
23  @NonNull
24  private final Long channelId;
25  /**
26  * 黑白名单类型
27  */
28  @NonNull
29  private final QChatChannelBlackWhiteType type;
30  /**
31  * 黑白名单操作类型
32  */
33  @NonNull
34  private final QChatChannelBlackWhiteOperateType operateType;
35  /**
36  * 账户accid列表:添加或者移除到黑白名单的accid列表,一次最多100个
37  */
38  @NonNull
39  private final List<String> toAccids;
40 
41  /**
42  *
43  * @param serverId 服务器Id
44  * @param channelId 频道Id
45  * @param type 黑白名单类型
46  * @param operateType 黑白名单操作类型
47  * @param toAccids 账户accid列表:添加或者移除到黑白名单的accid列表,一次最多100个
48  */
49  public QChatUpdateChannelBlackWhiteMembersParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull QChatChannelBlackWhiteType type, @NonNull QChatChannelBlackWhiteOperateType operateType, @NonNull List<String> toAccids) {
50  this.serverId = serverId;
51  this.channelId = channelId;
52  this.type = type;
53  this.operateType = operateType;
54  this.toAccids = toAccids;
55  }
56 
57  /**
58  * 获取服务器Id
59  * @return
60  */
61  @NonNull
62  public Long getServerId() {
63  return serverId;
64  }
65 
66  /**
67  * 获取频道Id
68  * @return
69  */
70  @NonNull
71  public Long getChannelId() {
72  return channelId;
73  }
74 
75  /**
76  * 获取黑白名单类型
77  * @return
78  */
79  @NonNull
81  return type;
82  }
83 
84  /**
85  * 获取黑白名单操作类型
86  * @return
87  */
88  @NonNull
90  return operateType;
91  }
92 
93  /**
94  * 获取账户accid列表:添加或者移除到黑白名单的accid列表
95  * @return
96  */
97  @NonNull
98  public List<String> getToAccids() {
99  return toAccids;
100  }
101 }
QChatUpdateChannelBlackWhiteMembersParam(@NonNull Long serverId,@NonNull Long channelId,@NonNull QChatChannelBlackWhiteType type,@NonNull QChatChannelBlackWhiteOperateType operateType,@NonNull List< String > toAccids)
List< String > getToAccids()
获取账户accid列表:添加或者移除到黑白名单的accid列表
QChatChannelBlackWhiteOperateType getOperateType()
获取黑白名单操作类型