1 package com.netease.nimlib.sdk.avsignalling.builder;
3 import android.text.TextUtils;
15 private String accountId;
16 private String requestId;
19 private String channelName;
20 private String channelExt;
22 private boolean offlineEnable;
23 private String customInfo;
25 private String nertcChannelName;
26 private Long nertcTokenTtl;
35 this.channelType = channelType;
36 this.accountId = accountId;
37 this.requestId = requestId;
44 this.channelName = channelName;
52 this.channelExt = channelExt;
60 this.selfUid = selfUid;
76 this.customInfo = customInfo;
84 this.pushConfig = pushConfig;
94 this.nertcChannelName = nertcChannelName;
104 this.nertcTokenTtl = nertcTokenTtl;
109 if (channelType == null || TextUtils.isEmpty(accountId) || TextUtils.isEmpty(requestId)) {
110 throw new IllegalArgumentException(
"CallParamBuilder illegal , (channelType , accountId , requestId) parameters must not null");
113 return new DirectCallParam(channelType, accountId, requestId, channelName, channelExt, selfUid, offlineEnable, customInfo, pushConfig,nertcChannelName,nertcTokenTtl);
CallParamBuilder nertcTokenTtl(Long nertcTokenTtl)
云信G2-RTC的token的有效期
CallParamBuilder offlineEnabled(boolean offlineEnabled)
相应的通知是否存离线
CallParamBuilder channelExt(String channelExt)
指定频道扩展字段
CallParamBuilder nertcChannelName(String nertcChannelName)
云信G2-RTC的房间名
CallParamBuilder customInfo(String customInfo)
邀请者附加的自定义信息,透传给被邀请者
CallParamBuilder selfUid(long selfUid)
指定自己的uid , 不指定的话,服务端会自动生成。如果指定请保持维一性
CallParamBuilder pushConfig(SignallingPushConfig pushConfig)
推送配置
CallParamBuilder channelName(String channelName)
指定频道名
CallParamBuilder(ChannelType channelType, String accountId, String requestId)