1 package com.netease.nimlib.sdk.qchat.param;
13 private static final String TAG =
"QChatServerMuteParam";
18 private final long serverId;
28 private final List<String> muteAccountIds;
33 private final long duration;
38 private String postscript;
47 this.operateType = null;
48 this.muteAccountIds = null;
60 this.serverId = serverId;
61 this.operateType = operateType;
62 this.muteAccountIds = muteAccountIds;
63 this.duration = duration;
76 this.serverId = serverId;
77 this.operateType = operateType;
78 this.muteAccountIds = muteAccountIds;
79 this.duration = duration;
80 this.postscript = postscript;
81 this.notifyType = notifyType;
109 return muteAccountIds;
137 this.postscript = postscript;
155 this.notifyType = notifyType;
164 NimLog.e(TAG,
"serverId is invalid");
167 if(operateType == null) {
168 NimLog.e(TAG,
"operateType is invalid");
171 if(muteAccountIds == null || muteAccountIds.isEmpty()) {
172 NimLog.e(TAG,
"muteAccountIds is invalid");
176 NimLog.e(TAG,
"duration is invalid");
QChatMuteOperateType getOperateType()
获取操作类型
QChatMuteNotifyScope getNotifyType()
获取通知类型
String getPostscript()
获取附言
long getDuration()
获取禁言持续时长
long getServerId()
获取服务器id
QChatServerMuteParam(long serverId, QChatMuteOperateType operateType, List< String > muteAccountIds, long duration, String postscript, QChatMuteNotifyScope notifyType)
List< String > getMuteAccountIds()
获取禁言成员列表
void setNotifyType(QChatMuteNotifyScope notifyType)
设置通知类型
boolean isValid()
判断参数是否合法
QChatServerMuteParam(long serverId, QChatMuteOperateType operateType, List< String > muteAccountIds, long duration)
void setPostscript(String postscript)
设置附言