NIMSDK-AOS  9.16.0
QChatGetExistingServerRolesByAccidsParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 import java.util.List;
6 
11 
15  @NonNull
16  private final Long serverId;
17 
21  @NonNull
22  private final List<String> accids;
26  private QChatRoleSortEnum sort;
30  private Boolean order;
31 
32 
34  serverId = 0L;
35  accids = null;
36  }
37 
43  public QChatGetExistingServerRolesByAccidsParam(@NonNull Long serverId, @NonNull List<String> accids) {
44  this.serverId = serverId;
45  this.accids = accids;
46  }
47 
52  @NonNull
53  public Long getServerId() {
54  return serverId;
55  }
56 
61  @NonNull
62  public List<String> getAccids() {
63  return accids;
64  }
65 
71  if (sort == null) {
73  }
74  return sort;
75  }
76 
81  public void setSort(QChatRoleSortEnum sort) {
82  this.sort = sort;
83  }
84 
89  public boolean getOrder() {
90  if (order == null) {
91  return false;
92  }
93  return order;
94  }
95 
100  public void setOrder(Boolean order) {
101  this.order = order;
102  }
103 
104  @Override
105  public String toString() {
106  return "QChatGetExistingServerRolesByAccidsParam{" +
107  "serverId=" + serverId +
108  ", accids=" + accids +
109  ", sort=" + getSort() +
110  ", order=" + getOrder() +
111  '}';
112  }
113 }
boolean getOrder()
获取排序规则,true:正序;false:倒序(默认)