public class ScheduleClient extends Object
| 构造器和说明 |
|---|
ScheduleClient(String masterSecret,
String appkey) |
ScheduleClient(String masterSecret,
String appKey,
HttpProxy proxy,
ClientConfig conf)
Create a Schedule Client with custom configuration.
|
ScheduleClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
ScheduleClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
ScheduleResult |
createSchedule(SchedulePayload payload) |
void |
deleteSchedule(String scheduleId) |
ScheduleResult |
getSchedule(String scheduleId) |
ScheduleListResult |
getScheduleList(int page) |
ScheduleResult |
updateSchedule(String scheduleId,
SchedulePayload payload) |
@Deprecated public ScheduleClient(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 mas retry times.@Deprecated public ScheduleClient(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 mas retry times.proxy - The proxy, if there is no proxy, should be null.public ScheduleClient(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 ScheduleResult createSchedule(SchedulePayload payload) throws APIConnectionException, APIRequestException
public ScheduleListResult getScheduleList(int page) throws APIConnectionException, APIRequestException
public ScheduleResult getSchedule(String scheduleId) throws APIConnectionException, APIRequestException
public ScheduleResult updateSchedule(String scheduleId, SchedulePayload payload) throws APIConnectionException, APIRequestException
public void deleteSchedule(String scheduleId) throws APIConnectionException, APIRequestException
Copyright © 2016. All Rights Reserved.