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