1 package com.netease.nimlib.sdk.qchat.param;
3 import android.text.TextUtils;
5 import androidx.annotation.NonNull;
11 import java.util.List;
39 private final String account;
44 private final String token;
48 private String appKey;
56 private String loginExt;
60 private Integer customClientType;
64 private String customPushContentType;
68 private String customTag;
121 this.loginExt = loginExt;
129 return customClientType;
137 this.customClientType = customClientType;
153 this.customTag = customTag;
161 return customPushContentType;
169 this.customPushContentType = customPushContentType;
177 return loginCallback;
187 this.account = SDKCacheUI.getAuthInfo() == null ?
"" : SDKCacheUI.getAuthInfo().getAccount();
188 this.token = SDKCacheUI.getAuthInfo() == null ?
"" : SDKCacheUI.getAuthInfo().getToken();
189 this.appKey = SDKCache.getAppKey();
191 int authType = SDKCacheUI.getAuthInfo() == null ?
QChatAuthType.
DEFAULT.getValue() : SDKCacheUI.getAuthInfo().getAuthType();
198 this.loginCallback = null;
212 this.loginCallback = callback;
213 this.account = account;
215 this.appKey = appKey;
216 this._authType = authType;
225 return !TextUtils.isEmpty(account) && !TextUtils.isEmpty(token) && !TextUtils.isEmpty(appKey);
229 return !TextUtils.isEmpty(account) && !TextUtils.isEmpty(appKey);
Integer getCustomClientType()
获取自定义客户端类型
String getAccount()
获取用户账号
String getAppKey()
获取appKey
String getCustomTag()
获取自定义Tag
String getCustomPushContentType()
获取自定义推送文案类型
void setCustomTag(String customTag)
设置自定义Tag
void setCustomPushContentType(String customPushContentType)
设置自定义推送文案类型,离线推送不显示详情时,要显示的文案对应的类型名称
List< String > getQChatLinkAddresses(final String account)
获取link地址列表
QChatLoginCallback getLoginCallback()
获取圈组登录独立模式回调
void setCustomClientType(int customClientType)
设置自定义客户端类型
QChatAuthType getAuthType()
获取鉴权方式
String getToken()
获取用户token
String getLoginExt()
获取登录自定义字段
static QChatAuthType typeOfValue(int value)
void setLoginExt(String loginExt)
设置登录自定义字段
QChatLoginParam()
非独立模式下,圈组登录参数的构造函数, 不需要传入account、token、appKey、authType、loginCallback acco...
boolean isValid()
数据是否有效,有效时才会进行登录操作,否则返回RES_EPARAM