NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatUpdateChannelParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4import com.netease.nimlib.sdk.qchat.enums.QChatChannelMode;
5import com.netease.nimlib.sdk.qchat.enums.QChatVisitorMode;
6
7/**
8 * "修改channel信息"接口入参
9 */
10public class QChatUpdateChannelParam extends QChatAntiSpamConfigParam{
11
12 /**
13 * 频道Id,必填
14 */
15 @NonNull
16 private final Long channelId;
17 /**
18 * 频道名称
19 */
20 private String name;
21 /**
22 * 频道主题
23 */
24 private String topic;
25 /**
26 * 频道自定义扩展字段
27 */
28 private String custom;
29
30 /**
31 * 频道查看模式
32 */
33 private QChatChannelMode viewMode;
34 /**
35 * 游客可见模式
36 */
37 private QChatVisitorMode visitorMode;
38
39 /**
40 * @param channelId: 更新的频道Id
41 */
42 public QChatUpdateChannelParam(long channelId) {
43 this.channelId = channelId;
44 }
45
46 /**
47 * 设置更新的频道名称
48 * @param name
49 */
50 public void setName(String name) {
51 this.name = name;
52 }
53
54 /**
55 * 设置更新的频道主题
56 * @param topic
57 */
58 public void setTopic(String topic) {
59 this.topic = topic;
60 }
61
62 /**
63 * 设置更新的频道自定义扩展字段
64 * @param custom
65 */
66 public void setCustom(String custom) {
67 this.custom = custom;
68 }
69
70 /**
71 * 设置更新的频道查看模式
72 * @param viewMode
73 */
74 public void setViewMode(QChatChannelMode viewMode) {
75 this.viewMode = viewMode;
76 }
77
78 /**
79 * 设置游客可见模式
80 * @param visitorMode
81 */
82 public void setVisitorMode(QChatVisitorMode visitorMode) {
83 this.visitorMode = visitorMode;
84 }
85
86 /**
87 * 获取更新的频道ID
88 */
89 @NonNull
90 public Long getChannelId() {
91 return channelId;
92 }
93
94 /**
95 * 获取更新的频道名称
96 */
97 public String getName() {
98 return name;
99 }
100
101 /**
102 * 获取更新的频道主题
103 */
104 public String getTopic() {
105 return topic;
106 }
107
108 /**
109 * 获取更新的频道自定义扩展字段
110 */
111 public String getCustom() {
112 return custom;
113 }
114
115 /**
116 * 获取更新的频道查看模式
117 */
119 return viewMode;
120 }
121
122 /**
123 * 获取游客可见模式
124 * @return
125 */
127 return visitorMode;
128 }
129}
String getCustom()
获取更新的频道自定义扩展字段
void setVisitorMode(QChatVisitorMode visitorMode)
设置游客可见模式
QChatChannelMode getViewMode()
获取更新的频道查看模式
void setTopic(String topic)
设置更新的频道主题
void setViewMode(QChatChannelMode viewMode)
设置更新的频道查看模式
void setCustom(String custom)
设置更新的频道自定义扩展字段