NIMSDK-AOS  9.16.0
QChatGetUserServerPushConfigsParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 import com.netease.nimlib.util.CollectionUtil;
5 import java.util.List;
6 
14  @NonNull
15  private final List<Long> serverIdList;
16 
20  public QChatGetUserServerPushConfigsParam(@NonNull List<Long> serverIdList) {
21  this.serverIdList = serverIdList;
22  }
23 
28  @NonNull
29  public List<Long> getServerIdList() {
30  return serverIdList;
31  }
32 
37  public boolean isValid(){
38  if(CollectionUtil.isEmpty(serverIdList)){
39  return false;
40  }
41  for (Long sererId : serverIdList) {
42  if(sererId == null || sererId <= 0){
43  return false;
44  }
45  }
46  return true;
47  }
48 
49  @Override
50  public String toString() {
51  return "QChatGetUserServerPushConfigsParam{" +
52  "serverIdList=" + serverIdList +
53  '}';
54  }
55 }