1 package com.netease.nimlib.sdk.v2.chatroom.params;
3 import android.text.TextUtils;
4 import java.io.Serializable;
14 private String targetTag;
18 private String notifyTargetTags;
22 private Integer duration;
27 private Boolean notificationEnabled;
31 private String notificationExtension;
49 return notifyTargetTags;
57 if (duration == null) {
68 if (notificationEnabled == null) {
71 return notificationEnabled;
79 return notificationExtension;
87 this.targetTag = targetTag;
95 this.notifyTargetTags = notifyTargetTags;
103 this.duration = duration;
111 this.notificationEnabled = notificationEnabled;
119 this.notificationExtension = notificationExtension;
123 if (TextUtils.isEmpty(targetTag)) {
126 if (duration != null && duration < 0) {
void setNotifyTargetTags(String notifyTargetTags)
设置消息的目标标签表达式, 标签表达式
void setTargetTag(String targetTag)
设置禁言的tag
String getNotificationExtension()
获取本次操作生成的通知中的扩展字段
void setNotificationExtension(String notificationExtension)
设置本次操作生成的通知中的扩展字段
void setDuration(int duration)
设置禁言时长
String getNotifyTargetTags()
获取消息的目标标签表达式, 标签表达式
V2NIMChatroomTagTempChatBannedParams()
String getTargetTag()
获取禁言的tag
boolean isNotificationEnabled()
是否需要通知
void setNotificationEnabled(boolean notificationEnabled)
设置是否需要通知