NIMSDK-AOS  9.19.0
QChatSubscribeChannelResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
5 import java.io.Serializable;
6 import java.util.List;
7 
8 public class QChatSubscribeChannelResult implements Serializable {
9 
10  private final List<QChatUnreadInfo> unreadInfoList;
11  private final List<QChatChannelIdInfo> failedList;
12 
13  /**
14  *
15  * @param unreadInfoList 订阅成功后的未读信息列表
16  * @param failedList 订阅失败的频道id信息列表
17  */
18  public QChatSubscribeChannelResult(List<QChatUnreadInfo> unreadInfoList, List<QChatChannelIdInfo> failedList) {
19  this.unreadInfoList = unreadInfoList;
20  this.failedList = failedList;
21  }
22 
23  /**
24  * 获取订阅成功后的未读信息列表
25  * 订阅正在输入事件时,该数据返回为空
26  * @return 未读信息列表
27  */
28  public List<QChatUnreadInfo> getUnreadInfoList() {
29  return unreadInfoList;
30  }
31 
32  /**
33  * 获取订阅失败的频道id信息列表
34  * @return
35  */
36  public List<QChatChannelIdInfo> getFailedList() {
37  return failedList;
38  }
39 
40  @Override
41  public String toString() {
42  return "QChatSubscribeChannelResult{" +
43  "unreadInfoList=" + unreadInfoList +
44  '}';
45  }
46 }
List< QChatChannelIdInfo > getFailedList()
获取订阅失败的频道id信息列表
List< QChatUnreadInfo > getUnreadInfoList()
获取订阅成功后的未读信息列表 订阅正在输入事件时,该数据返回为空
QChatSubscribeChannelResult(List< QChatUnreadInfo > unreadInfoList, List< QChatChannelIdInfo > failedList)