NIMSDK-AOS  9.19.0
ChatRoomTagsInfo.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.chatroom.model;
2 
3 import java.io.Serializable;
4 
5 /**
6  * 位置信息
7  */
8 public class ChatRoomTagsInfo implements Serializable{
9 
10  /**
11  * 标签,可以设置多个,json_array格式,例子:["tag1", "tag2"],如果要删除,则null即可,上传空数组代表启用标签功能但是不属于任何标签组
12  */
13  private String tags;
14  /**
15  * 更新标签的通知的目标标签,是一个标签表达式,同时也会改变该连接掉线时的通知对象,传null或空字符串表示允许通知聊天室所有成员,具体见<a href="https://doc.yunxin.163.com/docs/TM5MzM5Njk/TMxOTI0MDA?platformId=60002">标签表达式</a>
16  */
17  private String notifyTargetTags;
18  /**
19  * true表示,如果需要通知,则会产生一条通知,新增{@link com.netease.nimlib.sdk.msg.constant.NotificationType#ChatRoomTagsUpdate}
20  */
21  private Boolean needNotify;
22 
23  /**
24  * 通知扩展字段
25  */
26  private String ext;
27 
28  public ChatRoomTagsInfo() {
29  }
30 
31  public ChatRoomTagsInfo(String tags, String notifyTargetTags, Boolean needNotify,
32  String ext) {
33  this.tags = tags;
34  this.notifyTargetTags = notifyTargetTags;
35  this.needNotify = needNotify;
36  this.ext = ext;
37  }
38 
39  public String getTags() {
40  return tags;
41  }
42 
43  public void setTags(String tags) {
44  this.tags = tags;
45  }
46 
47  public String getNotifyTargetTags() {
48  return notifyTargetTags;
49  }
50 
51  public void setNotifyTargetTags(String notifyTargetTags) {
52  this.notifyTargetTags = notifyTargetTags;
53  }
54 
55  public Boolean getNeedNotify() {
56  return needNotify;
57  }
58 
59  public void setNeedNotify(Boolean needNotify) {
60  this.needNotify = needNotify;
61  }
62 
63  public String getExt() {
64  return ext;
65  }
66 
67  public void setExt(String ext) {
68  this.ext = ext;
69  }
70 }
ChatRoomTagsInfo(String tags, String notifyTargetTags, Boolean needNotify, String ext)