public class MoGoAiCloudClientConfig
extends java.lang.Object
| 构造器和说明 |
|---|
MoGoAiCloudClientConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation |
getIHttpDnsCurrentLocation()
返回HttpDns的位置信息,必须设置,否则将无法使用网络请求
|
long |
getLoopCheckDelay()
获取HttpDns检查时间间隔
|
int |
getNetMode()
获取当前网络环境
|
java.lang.String |
getSn()
获取从AI云平台获取的SN
|
java.lang.String |
getThirdPartyAppKey()
获取AI云平台分配给三方应用的AppKey,需要从AI云平台申请
|
java.lang.String |
getThirdPartyDeviceId()
获取三方设备唯一ID
|
java.lang.String |
getThirdPartySignSecret()
获取AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
java.lang.String |
getToken()
获取从AI云平台获取的Token
|
boolean |
isShowDebugLog()
是否打印日志
|
boolean |
isThirdLogin()
获取是否是第三放应用登录
|
void |
setIHttpDnsCurrentLocation(com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation IHttpDnsCurrentLocation)
返回HttpDns的位置信息,必须设置,否则将无法使用网络请求
|
void |
setLoopCheckDelay(long loopCheckDelay)
设置HttpDns检查时间间隔
|
void |
setNetMode(int sNetMode)
设置当前网络环境
|
void |
setShowDebugLog(boolean showDebugLog)
设置是否打印日志
|
void |
setThirdLogin(boolean thirdLogin)
设置是否是第三方应用登录
|
void |
setThirdPartyAppKey(java.lang.String thirdPartyAppKey)
设置AI云平台分配给三方应用的AppKey,需要从AI云平台申请
|
void |
setThirdPartyDeviceId(java.lang.String thirdPartyDeviceId)
设置三方设备唯一ID
|
void |
setThirdPartySignSecret(java.lang.String thirdPartySignSecret)
设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
java.lang.String |
toString() |
public java.lang.String getThirdPartyDeviceId()
public void setThirdPartyDeviceId(java.lang.String thirdPartyDeviceId)
thirdPartyDeviceId - 三方设备唯一IDpublic java.lang.String getThirdPartyAppKey()
public void setThirdPartyAppKey(java.lang.String thirdPartyAppKey)
thirdPartyAppKey - AppKeypublic java.lang.String getThirdPartySignSecret()
public void setThirdPartySignSecret(java.lang.String thirdPartySignSecret)
thirdPartySignSecret - 签名密钥public boolean isThirdLogin()
public void setThirdLogin(boolean thirdLogin)
thirdLogin - true-是,false-否public int getNetMode()
研发环境,
测试环境,
演示环境,
线上环境public void setNetMode(int sNetMode)
sNetMode - 当前的网络环境MogoHttpDnsConfig.HTTP_DNS_ENV_DEV,
MogoHttpDnsConfig.HTTP_DNS_ENV_QA,
MogoHttpDnsConfig.HTTP_DNS_ENV_DEMO,
MogoHttpDnsConfig.HTTP_DNS_ENV_RELEASEpublic java.lang.String getToken()
public java.lang.String getSn()
public boolean isShowDebugLog()
public void setShowDebugLog(boolean showDebugLog)
showDebugLog - true-打印日志,false-不打印日志public long getLoopCheckDelay()
public void setLoopCheckDelay(long loopCheckDelay)
loopCheckDelay - 时间间隔,毫秒public com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation getIHttpDnsCurrentLocation()
public void setIHttpDnsCurrentLocation(com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation IHttpDnsCurrentLocation)
IHttpDnsCurrentLocation - 返回位置信息的回调public java.lang.String toString()
toString 在类中 java.lang.Object