public class ScheduleClient extends Object
| Constructor and Description |
|---|
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)
Deprecated.
|
ScheduleClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ScheduleResult |
createSchedule(SchedulePayload payload) |
void |
deleteSchedule(String scheduleId) |
ScheduleResult |
getSchedule(String scheduleId) |
ScheduleListResult |
getScheduleList(int page) |
ScheduleMsgIdsResult |
getScheduleMsgIds(String scheduleId) |
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 ScheduleMsgIdsResult getScheduleMsgIds(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 © 2020. All rights reserved.