public class JPushClient extends Object
| 构造器和说明 |
|---|
JPushClient(String masterSecret,
String appKey)
Create a JPush Client.
|
JPushClient(String masterSecret,
String appKey,
boolean apnsProduction,
long timeToLive)
已过时。
|
JPushClient(String masterSecret,
String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Create a JPush Client by custom Client configuration.
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf,
boolean apnsProduction,
long timeToLive)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
cn.jiguang.common.resp.DefaultResult |
addRemoveDevicesFromTag(String theTag,
Set<String> toAddUsers,
Set<String> toRemoveUsers) |
cn.jiguang.common.resp.DefaultResult |
bindMobile(String registrationId,
String mobile) |
ScheduleResult |
createDailySchedule(String name,
String start,
String end,
String time,
int frequency,
PushPayload push)
Create a daily schedule push with a custom frequency.
|
ScheduleResult |
createDailySchedule(String name,
String start,
String end,
String time,
PushPayload push)
Create a daily schedule push everyday.
|
ScheduleResult |
createMonthlySchedule(String name,
String start,
String end,
String time,
int frequency,
String[] points,
PushPayload push)
Create a monthly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createMonthlySchedule(String name,
String start,
String end,
String time,
String[] points,
PushPayload push)
Create a monthly schedule push every month at the appointed days.
|
ScheduleResult |
createSingleSchedule(String name,
String time,
PushPayload push)
Create a single schedule.
|
ScheduleResult |
createWeeklySchedule(String name,
String start,
String end,
String time,
int frequency,
cn.jiguang.common.Week[] days,
PushPayload push)
Create a weekly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createWeeklySchedule(String name,
String start,
String end,
String time,
cn.jiguang.common.Week[] days,
PushPayload push)
Create a weekly schedule push every week at the appointed days.
|
cn.jiguang.common.resp.DefaultResult |
deleteAlias(String alias,
String platform) |
void |
deleteSchedule(String scheduleId)
Delete a schedule by id.
|
cn.jiguang.common.resp.DefaultResult |
deleteTag(String theTag,
String platform) |
ScheduleResult |
disableSchedule(String scheduleId)
Disable the schedule.
|
ScheduleResult |
enableSchedule(String scheduleId)
Enable the schedule.
|
AliasDeviceListResult |
getAliasDeviceList(String alias,
String platform) |
TagAliasResult |
getDeviceTagAlias(String registrationId) |
MessagesResult |
getReportMessages(String msgIds) |
ReceivedsResult |
getReportReceiveds(String msgIds)
Get received report.
|
UsersResult |
getReportUsers(cn.jiguang.common.TimeUnit timeUnit,
String start,
int duration) |
ScheduleResult |
getSchedule(String scheduleId)
Get the schedule information by the schedule id.
|
ScheduleListResult |
getScheduleList()
Get the schedule list size and the first page.
|
ScheduleListResult |
getScheduleList(int page)
Get the schedule list by the page.
|
TagListResult |
getTagList() |
Map<String,OnlineStatus> |
getUserOnlineStatus(String... registrationIds) |
cn.jiguang.common.resp.BooleanResult |
isDeviceInTag(String theTag,
String registrationID) |
PushResult |
sendAndroidMessageWithAlias(String title,
String msgContent,
SMS sms,
String... alias)
Send an Android message with alias.
|
PushResult |
sendAndroidMessageWithAlias(String title,
String msgContent,
String... alias) |
PushResult |
sendAndroidMessageWithRegistrationID(String title,
String msgContent,
SMS sms,
String... registrationID)
Send an Android message with registration id.
|
PushResult |
sendAndroidMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendAndroidNotificationWithAlias(String title,
String alert,
Map<String,String> extras,
String... alias) |
PushResult |
sendAndroidNotificationWithAlias(String title,
String alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send a notification to Android with alias.
|
PushResult |
sendAndroidNotificationWithRegistrationID(String title,
String alert,
Map<String,String> extras,
String... registrationID) |
PushResult |
sendAndroidNotificationWithRegistrationID(String title,
String alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send a notification to Android with RegistrationID.
|
PushResult |
sendIosMessageWithAlias(String title,
String msgContent,
SMS sms,
String... alias)
Send an iOS message with alias.
|
PushResult |
sendIosMessageWithAlias(String title,
String msgContent,
String... alias) |
PushResult |
sendIosMessageWithRegistrationID(String title,
String msgContent,
SMS sms,
String... registrationID)
Send an iOS message with registration id.
|
PushResult |
sendIosMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(String alert,
Map<String,String> extras,
String... alias) |
PushResult |
sendIosNotificationWithAlias(String alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send a notification to iOS with alias.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(String alert,
Map<String,String> extras,
String... registrationID) |
PushResult |
sendIosNotificationWithRegistrationID(String alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendMessageAll(String msgContent) |
PushResult |
sendMessageAll(String msgContent,
SMS sms)
Send a message to all
If it doesn't received within the delay time,JPush will send a SMS to the corresponding users.
|
PushResult |
sendMessageWithRegistrationID(String title,
String msgContent,
SMS sms,
String... registrationID)
Send a message with registrationIds.
|
PushResult |
sendMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendNotificationAll(String alert) |
PushResult |
sendNotificationAll(String alert,
SMS sms)
Send a notification to all.
|
PushResult |
sendPush(PushPayload pushPayload)
Send a push with PushPayload object.
|
PushResult |
sendPush(String payloadString)
Send a push with JSON string.
|
PushResult |
sendPushValidate(PushPayload payload)
Validate a push action, but do NOT send it actually.
|
PushResult |
sendPushValidate(String payloadString) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(String registrationId,
boolean clearAlias,
boolean clearTag) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(String registrationId,
String alias,
Set<String> tagsToAdd,
Set<String> tagsToRemove) |
ScheduleResult |
updateSchedule(String scheduleId,
SchedulePayload payload)
Update a schedule by the id.
|
ScheduleResult |
updateScheduleName(String scheduleId,
String name)
Update the schedule name
|
ScheduleResult |
updateSchedulePush(String scheduleId,
PushPayload push)
Update the push content of the schedule.
|
ScheduleResult |
updateScheduleTrigger(String scheduleId,
TriggerPayload trigger)
Update the trigger of the schedule.
|
public JPushClient(String masterSecret, String appKey)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.public JPushClient(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.@Deprecated public JPushClient(String masterSecret, String appKey, int maxRetryTimes)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.@Deprecated public JPushClient(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 max retry times.proxy - The proxy, if there is no proxy, should be null.@Deprecated public JPushClient(String masterSecret, String appKey, int maxRetryTimes, 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.maxRetryTimes - Client request retry times.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.@Deprecated public JPushClient(String masterSecret, String appKey, int maxRetryTimes, cn.jiguang.common.connection.HttpProxy proxy, cn.jiguang.common.ClientConfig conf, boolean apnsProduction, long timeToLive)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - Client request retry times.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.apnsProduction - Global APNs environment setting. It will override PushPayload Options.timeToLive - Global time_to_live setting. It will override PushPayload Options.@Deprecated public JPushClient(String masterSecret, String appKey, boolean apnsProduction, long timeToLive)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.apnsProduction - Global APNs environment setting. It will override PushPayload Options.timeToLive - Global time_to_live setting. It will override PushPayload Options.public PushResult sendPush(PushPayload pushPayload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
pushPayload - payload object of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPush(String payloadString) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
payloadString - payload of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(PushPayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
payload - payload of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(String payloadString) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ReceivedsResult getReportReceiveds(String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
msgIds - 100 msgids to batch getting is supported.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public UsersResult getReportUsers(cn.jiguang.common.TimeUnit timeUnit, String start, int duration) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic MessagesResult getReportMessages(String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendNotificationAll(String alert) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendNotificationAll(String alert, SMS sms) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithAlias(String title, String alert, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidNotificationWithAlias(String title, String alert, SMS sms, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The notification title.alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.alias - The users' alias.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithRegistrationID(String title, String alert, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidNotificationWithRegistrationID(String title, String alert, SMS sms, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The notification title.alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.registrationID - The registration id generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(String alert, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosNotificationWithAlias(String alert, SMS sms, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.alias - The users' alias.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, SMS sms, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, SMS sms, Map<String,String> extras, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(String alert, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosNotificationWithRegistrationID(String alert, SMS sms, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, SMS sms, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, SMS sms, Map<String,String> extras, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendMessageAll(String msgContent) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendMessageAll(String msgContent, SMS sms) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithAlias(String title, String msgContent, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidMessageWithAlias(String title, String msgContent, SMS sms, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registration id list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithAlias(String title, String msgContent, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosMessageWithAlias(String title, String msgContent, SMS sms, String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registrationIds generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registrationIds generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public TagAliasResult getDeviceTagAlias(String registrationId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(String registrationId, boolean clearAlias, boolean clearTag) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(String registrationId, String alias, Set<String> tagsToAdd, Set<String> tagsToRemove) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic TagListResult getTagList() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.BooleanResult isDeviceInTag(String theTag, String registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult addRemoveDevicesFromTag(String theTag, Set<String> toAddUsers, Set<String> toRemoveUsers) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteTag(String theTag, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic AliasDeviceListResult getAliasDeviceList(String alias, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteAlias(String alias, String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic Map<String,OnlineStatus> getUserOnlineStatus(String... registrationIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult bindMobile(String registrationId, String mobile) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleResult createSingleSchedule(String name, String time, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.time - The push time, format is 'yyyy-MM-dd HH:mm:ss'push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(String name, String start, String end, String time, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(String name, String start, String end, String time, int frequency, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'frequency - The custom frequency.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(String name, String start, String end, String time, cn.jiguang.common.Week[] days, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'days - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(String name, String start, String end, String time, int frequency, cn.jiguang.common.Week[] days, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.frequency - The custom frequency.days - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(String name, String start, String end, String time, String[] points, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.points - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(String name, String start, String end, String time, int frequency, String[] points, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.frequency - The custom frequency.points - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult getSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList(int page) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
page - The page to search.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleName(String scheduleId, String name) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.name - The new name.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult enableSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult disableSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleTrigger(String scheduleId, TriggerPayload trigger) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.trigger - The new trigger.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedulePush(String scheduleId, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.push - The new push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedule(String scheduleId, SchedulePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id to update.payload - The new schedule payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public void deleteSchedule(String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.Copyright © 2016. All Rights Reserved.