public class ScheduleClient extends Object
| 构造器和说明 |
|---|
ScheduleClient(String masterSecret,
String appkey) |
ScheduleClient(String masterSecret,
String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Create a Schedule Client with custom configuration.
|
ScheduleClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
ScheduleClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.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)
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, cn.jiguang.common.connection.HttpProxy proxy)
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, 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 ScheduleResult createSchedule(SchedulePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleListResult getScheduleList(int page) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleResult getSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleResult updateSchedule(String scheduleId, SchedulePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic void deleteSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2017. All Rights Reserved.