public class ScheduleClient
extends java.lang.Object
| Constructor and Description |
|---|
ScheduleClient(java.lang.String masterSecret,
java.lang.String appkey) |
ScheduleClient(java.lang.String masterSecret,
java.lang.String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Create a Schedule Client with custom configuration.
|
ScheduleClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes)
Deprecated.
|
ScheduleClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ScheduleResult |
createSchedule(SchedulePayload payload) |
void |
deleteSchedule(java.lang.String scheduleId) |
ScheduleResult |
getSchedule(java.lang.String scheduleId) |
ScheduleListResult |
getScheduleList(int page) |
ScheduleResult |
updateSchedule(java.lang.String scheduleId,
SchedulePayload payload) |
public ScheduleClient(java.lang.String masterSecret,
java.lang.String appkey)
@Deprecated
public ScheduleClient(java.lang.String masterSecret,
java.lang.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(java.lang.String masterSecret,
java.lang.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(java.lang.String masterSecret,
java.lang.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(java.lang.String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleResult updateSchedule(java.lang.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(java.lang.String scheduleId)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2018. All Rights Reserved.