NIMSDK-AOS  9.20.10
QChatUpdateChannelCategoryParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 
6 /**
7  * "修改频道分组信息"接口入参
8  */
10 
11  /**
12  * 频道分组Id,必填
13  */
14  @NonNull
15  private final Long categoryId;
16  /**
17  * 频道分组名称
18  */
19  private String name;
20  /**
21  * 频道自定义扩展字段
22  */
23  private String custom;
24  /**
25  * 频道查看模式
26  */
27  private QChatChannelMode viewMode;
28 
29  /**
30  * 自定义排序字段
31  * 分页查询频道分组时可以按照此字段的大小排序
32  */
33  private Long reorderWeight;
34 
35  /**
36  * @param categoryId: 更新的频道分组Id
37  */
38  public QChatUpdateChannelCategoryParam(long categoryId) {
39  this.categoryId = categoryId;
40  }
41 
42  /**
43  * 设置更新的频道分组名称
44  * @param name
45  */
46  public void setName(String name) {
47  this.name = name;
48  }
49 
50  /**
51  * 设置更新的频道分组自定义扩展字段
52  * @param custom
53  */
54  public void setCustom(String custom) {
55  this.custom = custom;
56  }
57 
58  /**
59  * 设置更新的频道查看模式
60  * @param viewMode
61  */
62  public void setViewMode(QChatChannelMode viewMode) {
63  this.viewMode = viewMode;
64  }
65 
66  /**
67  * 获取更新的频道ID
68  */
69  @NonNull
70  public Long getCategoryId() {
71  return categoryId;
72  }
73 
74  /**
75  * 获取更新的频道分组名称
76  */
77  public String getName() {
78  return name;
79  }
80 
81  /**
82  * 获取更新的频道分组自定义扩展字段
83  */
84  public String getCustom() {
85  return custom;
86  }
87 
88  /**
89  * 获取更新的频道查看模式
90  */
92  return viewMode;
93  }
94 
95  /**
96  * 获取自定义排序字段
97  * @return 自定义排序字段
98  */
99  public Long getReorderWeight() {
100  return reorderWeight;
101  }
102 
103  /**
104  * 设置自定义排序字段
105  * @param reorderWeight 自定义排序字段
106  */
107  public void setReorderWeight(Long reorderWeight) {
108  this.reorderWeight = reorderWeight;
109  }
110 }
void setViewMode(QChatChannelMode viewMode)
设置更新的频道查看模式
void setCustom(String custom)
设置更新的频道分组自定义扩展字段
String getCustom()
获取更新的频道分组自定义扩展字段