1 package com.netease.nimlib.sdk.qchat.param;
13 private static final String TAG =
"QChatChannelMuteParam";
18 private long serverId;
23 private long channelId;
33 private List<String> muteAccountIds;
38 private long duration;
43 private String postscript;
53 this.operateType = null;
54 this.muteAccountIds = null;
67 this.serverId = serverId;
68 this.channelId = channelId;
69 this.operateType = operateType;
70 this.muteAccountIds = muteAccountIds;
71 this.duration = duration;
85 this.serverId = serverId;
86 this.channelId = channelId;
87 this.operateType = operateType;
88 this.muteAccountIds = muteAccountIds;
89 this.duration = duration;
90 this.postscript = postscript;
91 this.notifyType = notifyType;
109 this.serverId = serverId;
127 this.channelId = channelId;
145 this.operateType = operateType;
154 return muteAccountIds;
163 this.muteAccountIds = muteAccountIds;
181 this.duration = duration;
199 this.postscript = postscript;
217 this.notifyType = notifyType;
226 NimLog.e(TAG,
"serverId is invalid");
230 NimLog.e(TAG,
"channelId is invalid");
233 if(operateType == null) {
234 NimLog.e(TAG,
"operateType is invalid");
237 if(muteAccountIds == null || muteAccountIds.isEmpty()) {
238 NimLog.e(TAG,
"muteAccountIds is invalid");
242 NimLog.e(TAG,
"duration is invalid");
void setDuration(long duration)
设置禁言持续时长
void setServerId(long serverId)
设置服务器id
List< String > getMuteAccountIds()
获取禁言成员列表
String getPostscript()
获取附言
long getServerId()
获取服务器id
void setOperateType(QChatMuteOperateType operateType)
设置操作类型
void setMuteAccountIds(List< String > muteAccountIds)
设置禁言成员列表
long getChannelId()
获取频道id
QChatChannelMuteParam(long serverId, long channelId, QChatMuteOperateType operateType, List< String > muteAccountIds, long duration, String postscript, QChatMuteNotifyScope notifyType)
long getDuration()
获取禁言持续时长
QChatMuteNotifyScope getNotifyType()
获取通知类型
boolean isValid()
判断参数是否合法
void setNotifyType(QChatMuteNotifyScope notifyType)
设置通知类型
QChatMuteOperateType getOperateType()
获取操作类型
QChatChannelMuteParam(long serverId, long channelId, QChatMuteOperateType operateType, List< String > muteAccountIds, long duration)
void setPostscript(String postscript)
设置附言
void setChannelId(long channelId)
设置频道id