NIMSDK-AOS  9.19.0
QChatRemoveMembersFromServerRoleResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
3 import androidx.annotation.NonNull;
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 
8 public class QChatRemoveMembersFromServerRoleResult implements Serializable {
9 
10  private List<String> successAccids;
11  private List<String> failedAccids;
12 
13  public QChatRemoveMembersFromServerRoleResult(List<String> successAccids,List<String> failedAccids) {
14  if (successAccids != null) {
15  this.successAccids = new ArrayList<>(successAccids);
16  } else {
17  this.successAccids = new ArrayList<>(0);
18  }
19 
20  if (failedAccids != null) {
21  this.failedAccids = new ArrayList<>(failedAccids);
22  } else {
23  this.failedAccids = new ArrayList<>(0);
24  }
25  }
26 
27  /**
28  * @return 被成功移除的用户的accid
29  */
30  @NonNull
31  public List<String> getSuccessAccids() {
32  return successAccids;
33  }
34 
35  /**
36  * @return 移除失败的用户的accid
37  */
38  @NonNull
39  public List<String> getFailedAccids() {
40  return failedAccids;
41  }
42 
43  @Override
44  public String toString() {
45  return "QChatRemoveMembersFromServerRoleResult{" +
46  "accids=" + successAccids +
47  ","+"failedAccids=" + failedAccids +
48  '}';
49  }
50 }
QChatRemoveMembersFromServerRoleResult(List< String > successAccids, List< String > failedAccids)