public class CallParamBuilder
extends java.lang.Object
构造器和说明 |
---|
CallParamBuilder(ChannelType channelType,
java.lang.String accountId,
java.lang.String requestId) |
限定符和类型 | 方法和说明 |
---|---|
DirectCallParam |
build() |
CallParamBuilder |
channelExt(java.lang.String channelExt)
指定频道扩展字段
|
CallParamBuilder |
channelName(java.lang.String channelName)
指定频道名
|
CallParamBuilder |
customInfo(java.lang.String customInfo)
邀请者附加的自定义信息,透传给被邀请者
|
CallParamBuilder |
nertcChannelName(java.lang.String nertcChannelName)
云信G2-RTC的房间名
|
CallParamBuilder |
nertcTokenTtl(java.lang.Long nertcTokenTtl)
云信G2-RTC的token的有效期
|
CallParamBuilder |
offlineEnabled(boolean offlineEnabled)
相应的通知是否存离线
|
CallParamBuilder |
pushConfig(SignallingPushConfig pushConfig)
推送配置
|
CallParamBuilder |
selfUid(long selfUid)
指定自己的uid , 不指定的话,服务端会自动生成。
|
public CallParamBuilder(ChannelType channelType, java.lang.String accountId, java.lang.String requestId)
channelType
- 频道类型accountId
- 对方的accidrequestId
- 邀请id ,发起邀请者自行生成(要保证唯一性)public CallParamBuilder channelName(java.lang.String channelName)
public CallParamBuilder channelExt(java.lang.String channelExt)
public CallParamBuilder selfUid(long selfUid)
public CallParamBuilder offlineEnabled(boolean offlineEnabled)
public CallParamBuilder customInfo(java.lang.String customInfo)
public CallParamBuilder pushConfig(SignallingPushConfig pushConfig)
public CallParamBuilder nertcChannelName(java.lang.String nertcChannelName)
nertcChannelName
- 如果填了该字段,则会返回tokenpublic CallParamBuilder nertcTokenTtl(java.lang.Long nertcTokenTtl)
nertcTokenTtl
- 过期时间,单位秒,选填,默认10分钟public DirectCallParam build()