NIMSDK-AOS  9.16.0
QChatJoinByInviteCodeParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.Nullable;
4 
12  private final long serverId;
16  private final String inviteCode;
20  private String postscript;
21 
27  public QChatJoinByInviteCodeParam(long serverId, String inviteCode) {
28  this.serverId = serverId;
29  this.inviteCode = inviteCode;
30  }
31 
35  public long getServerId() {
36  return serverId;
37  }
38 
42  public String getInviteCode() {
43  return inviteCode;
44  }
45 
50  public void setPostscript(@Nullable String postscript) {
51  this.postscript = postscript;
52  }
53 
57  public String getPostscript() {
58  return postscript;
59  }
60 
64  public boolean isValid() {
65  return serverId > 0;
66  }
67 
68  @Override
69  public String toString() {
70  return "QChatJoinByInviteCodeParam{" +
71  "serverId=" + serverId +
72  ", inviteCode='" + inviteCode + '\'' +
73  ", postscript='" + postscript + '\'' +
74  '}';
75  }
76 }
void setPostscript(@Nullable String postscript)
设置邀请码