NIMSDK-AOS  9.16.0
QChatUpdateCategoryInfoOfChannelParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 
10 
14  @NonNull
15  private final Long channelId;
19  private Long categoryId;
23  private QChatChannelSyncMode syncMode;
24 
28  public QChatUpdateCategoryInfoOfChannelParam(long channelId) {
29  this.channelId = channelId;
30  }
31 
38  public QChatUpdateCategoryInfoOfChannelParam(long channelId, Long categoryId,
39  QChatChannelSyncMode syncMode) {
40  this.channelId = channelId;
41  this.categoryId = categoryId;
42  this.syncMode = syncMode;
43  }
44 
48  @NonNull
49  public Long getChannelId() {
50  return channelId;
51  }
52 
57  public Long getCategoryId() {
58  return categoryId;
59  }
60 
65  public void setCategoryId(Long categoryId) {
66  this.categoryId = categoryId;
67  }
68 
74  return syncMode;
75  }
76 
81  public void setSyncMode(QChatChannelSyncMode syncMode) {
82  this.syncMode = syncMode;
83  }
84 }
void setCategoryId(Long categoryId)
设置频道分组Id,如果传0表示从频道分组中移除频道
QChatUpdateCategoryInfoOfChannelParam(long channelId, Long categoryId, QChatChannelSyncMode syncMode)