NIMSDK-AOS  9.16.0
QChatUpdateChannelBlackWhiteMembersParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
7 
8 import java.util.List;
9 
14 
18  @NonNull
19  private final Long serverId;
23  @NonNull
24  private final Long channelId;
28  @NonNull
29  private final QChatChannelBlackWhiteType type;
33  @NonNull
34  private final QChatChannelBlackWhiteOperateType operateType;
38  @NonNull
39  private final List<String> toAccids;
40 
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 
61  @NonNull
62  public Long getServerId() {
63  return serverId;
64  }
65 
70  @NonNull
71  public Long getChannelId() {
72  return channelId;
73  }
74 
79  @NonNull
81  return type;
82  }
83 
88  @NonNull
90  return operateType;
91  }
92 
97  @NonNull
98  public List<String> getToAccids() {
99  return toAccids;
100  }
101 }
List< String > getToAccids()
获取账户accid列表:添加或者移除到黑白名单的accid列表
QChatChannelBlackWhiteOperateType getOperateType()
获取黑白名单操作类型
QChatUpdateChannelBlackWhiteMembersParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull QChatChannelBlackWhiteType type, @NonNull QChatChannelBlackWhiteOperateType operateType, @NonNull List< String > toAccids)