NIMSDK-AOS  9.21.10
QChatInviteServerMembersParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 import java.util.List;
5 
6 /**
7  * "邀请服务器成员"接口入参
8  */
9 public class QChatInviteServerMembersParam extends QChatServerJoinParam{
10 
11  /**
12  * 邀请加入的服务器Id,必填
13  */
14  @NonNull
15  private final Long serverId;
16  /**
17  * 邀请加入的成员的accid列表,必填
18  */
19  @NonNull
20  private final List<String> accids;
21  /**
22  * 附言(最长5000)
23  */
24  @NonNull
25  private String postscript = "";
26 
27  /**
28  *
29  * @param serverId 邀请加入的服务器Id
30  * @param accids 邀请加入的成员的accid列表
31  */
32  public QChatInviteServerMembersParam(long serverId, List<String> accids) {
33  this.serverId = serverId;
34  this.accids = accids;
35  }
36 
37  /**
38  * 获取邀请加入的服务器Id
39  * @return
40  */
41  @NonNull
42  public Long getServerId() {
43  return serverId;
44  }
45 
46  /**
47  * 获取邀请加入的成员的accid列表
48  * @return
49  */
50  @NonNull
51  public List<String> getAccids() {
52  return accids;
53  }
54 
55  /**
56  * 获取附言
57  * @return
58  */
59  @NonNull
60  public String getPostscript() {
61  return postscript;
62  }
63 
64  /**
65  * 设置附言
66  * @param postscript
67  */
68  public void setPostscript(@NonNull String postscript) {
69  this.postscript = postscript;
70  }
71 
72  /**
73  * 获取有效时长
74  * @return
75  */
76  @Override
77  public Long getTtl() {
78  return super.getTtl();
79  }
80 
81  /**
82  * 设置有效时长
83  * @param ttl
84  */
85  @Override
86  public void setTtl(Long ttl) {
87  super.setTtl(ttl);
88  }
89 }
List< String > getAccids()
获取邀请加入的成员的accid列表