NIMSDK-AOS  10.5.0
ChannelFullInfo.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.avsignalling.model;
2 
5 
6 import java.io.Serializable;
7 import java.util.ArrayList;
8 
12 public class ChannelFullInfo implements Serializable {
13 
14  private ChannelBaseInfo channelBaseInfo;
15 
16  private ArrayList<MemberInfo> members;
17 
18 
19  public ChannelFullInfo(ChannelBaseInfo channelBaseInfo, ArrayList<MemberInfo> members) {
20  if (channelBaseInfo == null) {
21  throw new NullPointerException("channelBaseInfo is null");
22  }
23  this.channelBaseInfo = channelBaseInfo;
24  this.members = members;
25  }
26 
27 
31  public String getChannelName() {
32  return channelBaseInfo.getChannelName();
33  }
34 
35 
39  public String getChannelId() {
40  return channelBaseInfo.getChannelId();
41  }
42 
46  public ChannelType getType() {
47  return channelBaseInfo.getType();
48  }
49 
53  public String getChannelExt() {
54  return channelBaseInfo.getChannelExt();
55  }
56 
60  public long getCreateTimestamp() {
61  return channelBaseInfo.getCreateTimestamp();
62  }
63 
67  public long getExpireTimestamp() {
68  return channelBaseInfo.getExpireTimestamp();
69  }
70 
71 
75  public String getCreatorAccountId() {
76  return channelBaseInfo.getCreatorAccountId();
77  }
78 
79 
86  return channelBaseInfo.getChannelStatus();
87  }
88 
92  public ArrayList<MemberInfo> getMembers() {
93  if (members == null) {
94  return new ArrayList<>();
95  }
96  return members;
97  }
98 
99 
104  return channelBaseInfo;
105  }
106 
110  public void setChannelBaseInfo(ChannelBaseInfo channelBaseInfo) {
111  this.channelBaseInfo = channelBaseInfo;
112  }
113 
117  public void setMembers(ArrayList<MemberInfo> members) {
118  this.members = members;
119  }
120 
121 
122 }
void setChannelBaseInfo(ChannelBaseInfo channelBaseInfo)
设置频道信息
频道的完整信息,频道基础信息+频道成员列表
ChannelBaseInfo getChannelBaseInfo()
获取频道基础信息
String getCreatorAccountId()
获取频道创建者accountId
void setMembers(ArrayList< MemberInfo > members)
设置频道的成员列表
String getChannelExt()
获取创建频道时的扩展字段
ChannelFullInfo(ChannelBaseInfo channelBaseInfo, ArrayList< MemberInfo > members)
ArrayList< MemberInfo > getMembers()
获取频道的成员信息
String getCreatorAccountId()
获取频道创建者accountId
String getChannelExt()
获取创建频道时的扩展字段