1 package com.netease.nimlib.sdk.avsignalling.builder;
3 import android.text.TextUtils;
15 private String channelId;
16 private String accountId;
17 private String requestId;
18 private String customInfo;
20 private boolean offlineEnabled;
31 this.channelId = channelId;
32 this.accountId = accountId;
33 this.requestId = requestId;
41 this.customInfo = customInfo;
50 this.pushConfig = signallingPushConfig;
59 this.offlineEnabled = offlineEnabled;
64 if (TextUtils.isEmpty(channelId) || TextUtils.isEmpty(accountId) || TextUtils.isEmpty(requestId)) {
65 throw new IllegalArgumentException(
"InviteParamBuilder illegal , (channelId , accountId , requestId) parameters must not null");
67 return new InviteParam(channelId, accountId, requestId, customInfo, offlineEnabled, pushConfig);
InviteParamBuilder offlineEnabled(boolean offlineEnabled)
InviteParamBuilder(String channelId, String accountId, String requestId)
InviteParamBuilder customInfo(String customInfo)
InviteParamBuilder pushConfig(SignallingPushConfig signallingPushConfig)
构造邀请相关操作的参数 ,其中channelId、accountId、requestId 这3个参数必须设置