NIMSDK-AOS  10.5.0
QChatLoginResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
3 import androidx.annotation.NonNull;
5 import java.io.Serializable;
6 import java.util.ArrayList;
7 import java.util.List;
8 
12 public class QChatLoginResult implements Serializable {
13 
17  private final QChatClient currentClient;
21  private final List<QChatClient> otherClients;
22 
28  public QChatLoginResult(QChatClient currentClient, List<QChatClient> otherClients) {
29  this.currentClient = currentClient;
30  this.otherClients = otherClients != null ? new ArrayList<>(otherClients) : new ArrayList<>();
31  }
32 
37  @NonNull
39  return currentClient;
40  }
41 
46  @NonNull
47  public List<QChatClient> getOtherClients() {
48  return otherClients;
49  }
50 
51  @Override
52  public String toString() {
53  return "QChatLoginResult{" +
54  "currentClient=" + currentClient +
55  ", otherClients=" + otherClients +
56  '}';
57  }
58 }
QChatLoginResult(QChatClient currentClient, List< QChatClient > otherClients)
QChatClient getCurrentClient()
获取当前登录客户端信息
List< QChatClient > getOtherClients()
获取其他登录客户端信息列表