public class DeviceClient extends Object
| 构造器和说明 |
|---|
DeviceClient(String masterSecret,
String appKey) |
DeviceClient(String masterSecret,
String appKey,
HttpProxy proxy,
ClientConfig conf)
Create a Device Client by client configuration.
|
DeviceClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
DeviceClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultResult |
addRemoveDevicesFromTag(String theTag,
Set<String> toAddUsers,
Set<String> toRemoveUsers) |
DefaultResult |
bindMobile(String registrationId,
String mobile) |
DefaultResult |
deleteAlias(String alias,
String platform) |
DefaultResult |
deleteTag(String theTag,
String platform) |
AliasDeviceListResult |
getAliasDeviceList(String alias,
String platform) |
TagAliasResult |
getDeviceTagAlias(String registrationId) |
TagListResult |
getTagList() |
Map<String,OnlineStatus> |
getUserOnlineStatus(String... registrationIds) |
BooleanResult |
isDeviceInTag(String theTag,
String registrationID) |
DefaultResult |
updateDeviceTagAlias(String registrationId,
boolean clearAlias,
boolean clearTag) |
DefaultResult |
updateDeviceTagAlias(String registrationId,
String alias,
Set<String> tagsToAdd,
Set<String> tagsToRemove) |
@Deprecated public DeviceClient(String masterSecret, String appKey, int maxRetryTimes)
ClientConfig.setMaxRetryTimes(int) instead of this constructor.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, HttpProxy proxy)
ClientConfig.setMaxRetryTimes(int) instead of this constructor.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, HttpProxy proxy, 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 APIConnectionException, APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId, boolean clearAlias, boolean clearTag) throws APIConnectionException, APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId, String alias, Set<String> tagsToAdd, Set<String> tagsToRemove) throws APIConnectionException, APIRequestException
public DefaultResult bindMobile(String registrationId, String mobile) throws APIConnectionException, APIRequestException
public TagListResult getTagList() throws APIConnectionException, APIRequestException
public BooleanResult isDeviceInTag(String theTag, String registrationID) throws APIConnectionException, APIRequestException
public DefaultResult addRemoveDevicesFromTag(String theTag, Set<String> toAddUsers, Set<String> toRemoveUsers) throws APIConnectionException, APIRequestException
public DefaultResult deleteTag(String theTag, String platform) throws APIConnectionException, APIRequestException
public AliasDeviceListResult getAliasDeviceList(String alias, String platform) throws APIConnectionException, APIRequestException
public DefaultResult deleteAlias(String alias, String platform) throws APIConnectionException, APIRequestException
public Map<String,OnlineStatus> getUserOnlineStatus(String... registrationIds) throws APIConnectionException, APIRequestException
Copyright © 2016. All Rights Reserved.