public class NCMBPushService extends NCMBService
NCMBService.RequestParams
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_STATUS_PUSH_CREATED
Status code of push created
|
static int |
HTTP_STATUS_PUSH_DELETED
Status code of push deleted
|
static int |
HTTP_STATUS_PUSH_GOTTEN
Status code of push gotten
|
static int |
HTTP_STATUS_PUSH_RECEIPTSTATUS
Status code of push receiptStatus
|
static int |
HTTP_STATUS_PUSH_UPDATED
Status code of push updated
|
static java.lang.String |
SERVICE_PATH
service path for API category
|
mContext, mServicePath
Modifier and Type | Method and Description |
---|---|
void |
deletePush(java.lang.String pushId)
Delete push object
|
void |
deletePushInBackground(java.lang.String pushId,
DoneCallback callback)
Delete push object in background
|
NCMBPush |
fetchPush(java.lang.String pushId)
Get push object
|
void |
fetchPushInBackground(java.lang.String pushId,
FetchCallback callback)
Get push object in background
|
java.util.List |
searchPush(org.json.JSONObject conditions)
Search push
|
void |
searchPushInBackground(org.json.JSONObject conditions,
SearchPushCallback callback)
Search installations in background
|
org.json.JSONObject |
sendPush(org.json.JSONObject params)
Create push object
|
void |
sendPushInBackground(org.json.JSONObject params,
ExecuteServiceCallback callback)
Create push object in background
|
void |
sendPushReceiptStatusInBackground(java.lang.String pushId,
ExecuteServiceCallback callback)
Open push registration in background
|
org.json.JSONObject |
updatePush(java.lang.String pushId,
org.json.JSONObject params)
Update push object
It can only be updated before delivery
|
void |
updatePushInBackground(java.lang.String pushId,
org.json.JSONObject params,
ExecuteServiceCallback callback)
Update push object in background
It can only be updated before delivery
|
sendRequest, sendRequest, sendRequest, sendRequest, sendRequestAsync, sendRequestAsync, sendRequestFile, sendRequestFileAsync
public static final java.lang.String SERVICE_PATH
public static final int HTTP_STATUS_PUSH_CREATED
public static final int HTTP_STATUS_PUSH_UPDATED
public static final int HTTP_STATUS_PUSH_DELETED
public static final int HTTP_STATUS_PUSH_GOTTEN
public static final int HTTP_STATUS_PUSH_RECEIPTSTATUS
public org.json.JSONObject sendPush(org.json.JSONObject params) throws NCMBException
params
- push parametersNCMBException
- exception from NIFCLOUD mobile backendpublic void sendPushInBackground(org.json.JSONObject params, ExecuteServiceCallback callback)
params
- push parameterscallback
- ExecuteServiceCallbackpublic org.json.JSONObject updatePush(java.lang.String pushId, org.json.JSONObject params) throws NCMBException
pushId
- object idparams
- update informationNCMBException
- exception from NIFCLOUD mobile backendpublic void updatePushInBackground(java.lang.String pushId, org.json.JSONObject params, ExecuteServiceCallback callback)
pushId
- object idparams
- update informationcallback
- ExecuteServiceCallbackpublic void deletePush(java.lang.String pushId) throws NCMBException
pushId
- object idNCMBException
- exception from NIFCLOUD mobile backendpublic void deletePushInBackground(java.lang.String pushId, DoneCallback callback)
pushId
- objectIdcallback
- ActionCallbackpublic NCMBPush fetchPush(java.lang.String pushId) throws NCMBException
pushId
- object idNCMBException
- exception from NIFCLOUD mobile backendpublic void fetchPushInBackground(java.lang.String pushId, FetchCallback callback)
pushId
- object idcallback
- ExecuteServiceCallbackpublic java.util.List searchPush(org.json.JSONObject conditions) throws NCMBException
conditions
- search conditionsNCMBException
- exception from NIFCLOUD mobile backendpublic void searchPushInBackground(org.json.JSONObject conditions, SearchPushCallback callback)
conditions
- search conditionscallback
- ExecuteServiceCallbackpublic void sendPushReceiptStatusInBackground(java.lang.String pushId, ExecuteServiceCallback callback)
pushId
- open push object idcallback
- ExecuteServiceCallback