1 package com.netease.nimlib.sdk.avsignalling.model;
7 private final String channelId;
8 private final String accountId;
9 private final String requestId;
12 private Boolean offlineEnable;
13 private String customInfo;
14 private String nertcChannelName;
15 private Long nertcTokenTtl;
16 private String nertcJoinRoomQueryParamMap;
19 this.channelId = channelId;
20 this.accountId = accountId;
21 this.requestId = requestId;
70 return nertcChannelName;
84 return nertcJoinRoomQueryParamMap;
87 public static final class JoinAndAcceptParamBuilder {
88 private final String channelId;
89 private final String accountId;
90 private final String requestId;
92 private Boolean offlineEnable;
93 private String customInfo;
94 private String nertcChannelName;
95 private Long nertcTokenTtl;
96 private String nertcJoinRoomQueryParamMap;
106 public JoinAndAcceptParamBuilder(String channelId, String accountId, String requestId) {
107 this.channelId = channelId;
108 this.accountId = accountId;
109 this.requestId = requestId;
115 public JoinAndAcceptParamBuilder withSelfUid(Long selfUid) {
116 this.selfUid = selfUid;
123 public JoinAndAcceptParamBuilder withOfflineEnable(Boolean offlineEnable) {
124 this.offlineEnable = offlineEnable;
131 public JoinAndAcceptParamBuilder withCustomInfo(String customInfo) {
132 this.customInfo = customInfo;
139 public JoinAndAcceptParamBuilder withNertcChannelName(String nertcChannelName) {
140 this.nertcChannelName = nertcChannelName;
147 public JoinAndAcceptParamBuilder withNertcTokenTtl(Long nertcTokenTtl) {
148 this.nertcTokenTtl = nertcTokenTtl;
155 public JoinAndAcceptParamBuilder withNertcJoinRoomQueryParamMap(String nertcJoinRoomQueryParamMap) {
156 this.nertcJoinRoomQueryParamMap = nertcJoinRoomQueryParamMap;
162 joinAndAcceptParam.nertcTokenTtl = this.nertcTokenTtl;
163 joinAndAcceptParam.nertcJoinRoomQueryParamMap = this.nertcJoinRoomQueryParamMap;
164 joinAndAcceptParam.selfUid = this.selfUid;
165 joinAndAcceptParam.nertcChannelName = this.nertcChannelName;
166 joinAndAcceptParam.customInfo = this.customInfo;
167 joinAndAcceptParam.offlineEnable = this.offlineEnable;
168 return joinAndAcceptParam;
Long getSelfUid()
获取自己的uid
String getNertcJoinRoomQueryParamMap()
获取云信G2-RTC加入房间的请求参数,可转化为json的字符串
String getAccountId()
获取对方帐号id
String getChannelId()
获取频道id
String getRequestId()
获取本次邀请的唯一标识
String getNertcChannelName()
获取云信G2-RTC的房间名
String getCustomInfo()
获取附加的自定义信息
Boolean getOfflineEnable()
相应的通知是否存离线
Long getNertcTokenTtl()
获取云信G2-RTC的token的有效期,单位秒,选填,默认10分钟