public class DeviceClient extends Object
| 构造器和说明 |
|---|
DeviceClient(String masterSecret,
String appKey) |
DeviceClient(String masterSecret,
String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Create a Device Client by client configuration.
|
DeviceClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
DeviceClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
cn.jiguang.common.resp.DefaultResult |
addRemoveDevicesFromTag(String theTag,
Set<String> toAddUsers,
Set<String> toRemoveUsers) |
cn.jiguang.common.resp.DefaultResult |
bindMobile(String registrationId,
String mobile) |
cn.jiguang.common.resp.DefaultResult |
deleteAlias(String alias,
String platform) |
cn.jiguang.common.resp.DefaultResult |
deleteTag(String theTag,
String platform) |
AliasDeviceListResult |
getAliasDeviceList(String alias,
String platform) |
TagAliasResult |
getDeviceTagAlias(String registrationId) |
TagListResult |
getTagList() |
Map<String,OnlineStatus> |
getUserOnlineStatus(String... registrationIds) |
cn.jiguang.common.resp.BooleanResult |
isDeviceInTag(String theTag,
String registrationID) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(String registrationId,
boolean clearAlias,
boolean clearTag) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(String registrationId,
String alias,
Set<String> tagsToAdd,
Set<String> tagsToRemove) |
@Deprecated public DeviceClient(String masterSecret, String appKey, int maxRetryTimes)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.@Deprecated public DeviceClient(String masterSecret, String appKey, int maxRetryTimes, cn.jiguang.common.connection.HttpProxy proxy)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.proxy - The HTTP proxy.public DeviceClient(String masterSecret, String appKey, cn.jiguang.common.connection.HttpProxy proxy, cn.jiguang.common.ClientConfig conf)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.public TagAliasResult getDeviceTagAlias(String registrationId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(String registrationId, boolean clearAlias, boolean clearTag) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(String registrationId, String alias, Set<String> tagsToAdd, Set<String> tagsToRemove) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult bindMobile(String registrationId, String mobile) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic TagListResult getTagList() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.BooleanResult isDeviceInTag(String theTag, String registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult addRemoveDevicesFromTag(String theTag, Set<String> toAddUsers, Set<String> toRemoveUsers) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteTag(String theTag, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic AliasDeviceListResult getAliasDeviceList(String alias, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteAlias(String alias, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic Map<String,OnlineStatus> getUserOnlineStatus(String... registrationIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2017. All Rights Reserved.