public class BaseClient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_baseUrl |
protected com.google.gson.Gson |
_gson |
protected cn.jiguang.common.connection.IHttpClient |
_httpClient |
| Constructor and Description |
|---|
BaseClient(java.lang.String appKey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
Create a JMessage Base Client
|
| Modifier and Type | Method and Description |
|---|---|
void |
setHttpClient(cn.jiguang.common.connection.IHttpClient httpClient) |
protected cn.jiguang.common.connection.IHttpClient _httpClient
protected java.lang.String _baseUrl
protected com.google.gson.Gson _gson
public BaseClient(java.lang.String appKey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
appKey - The KEY of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.config - The client configuration. Can use JMessageConfig.getInstance() as default.Copyright © 2018. All Rights Reserved.