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