public class NCMBInstallationService extends NCMBService
NCMBService.RequestParams
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_STATUS_INSTALLATION_CREATED
Status code of installation created
|
static int |
HTTP_STATUS_INSTALLATION_DELETED
Status code of installation deleted
|
static int |
HTTP_STATUS_INSTALLATION_GOTTEN
Status code of installation gotten
|
static int |
HTTP_STATUS_INSTALLATION_UPDATED
Status code of installation updated
|
static java.lang.String |
SERVICE_PATH
service path for API category
|
mContext, mServicePath
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
createInstallation(java.lang.String registrationId,
org.json.JSONObject params)
Create installation object
|
void |
createInstallationInBackground(java.lang.String registrationId,
org.json.JSONObject params,
ExecuteServiceCallback callback)
Create installation object in background
|
void |
deleteInstallation(java.lang.String objectId)
Delete installation object
|
void |
deleteInstallationInBackground(java.lang.String objectId,
DoneCallback callback)
Delete installation object in background
|
NCMBInstallation |
fetchInstallation(java.lang.String objectId)
Get installation object
|
void |
fetchInstallationInBackground(java.lang.String objectId,
FetchCallback callback)
Get installation object in background
|
java.util.List |
searchInstallation(org.json.JSONObject conditions)
Search installations
|
void |
searchInstallationInBackground(org.json.JSONObject conditions,
SearchInstallationCallback callback)
Search installations in background
|
org.json.JSONObject |
updateInstallation(java.lang.String objectId,
org.json.JSONObject params)
Update installation object
|
void |
updateInstallationInBackground(java.lang.String objectId,
org.json.JSONObject params,
ExecuteServiceCallback callback)
Update installation object in background
|
sendRequest, sendRequest, sendRequest, sendRequest, sendRequestAsync, sendRequestAsync, sendRequestFile, sendRequestFileAsync
public static final java.lang.String SERVICE_PATH
public static final int HTTP_STATUS_INSTALLATION_CREATED
public static final int HTTP_STATUS_INSTALLATION_UPDATED
public static final int HTTP_STATUS_INSTALLATION_DELETED
public static final int HTTP_STATUS_INSTALLATION_GOTTEN
public org.json.JSONObject createInstallation(java.lang.String registrationId, org.json.JSONObject params) throws NCMBException
registrationId
- registration idparams
- installation parametersNCMBException
- exception from NIFCLOUD mobile backendpublic void createInstallationInBackground(java.lang.String registrationId, org.json.JSONObject params, ExecuteServiceCallback callback)
registrationId
- registration idparams
- installation parameterscallback
- JSONCallbackpublic org.json.JSONObject updateInstallation(java.lang.String objectId, org.json.JSONObject params) throws NCMBException
objectId
- objectIdparams
- installation parametersNCMBException
- exception from NIFCLOUD mobile backendpublic void updateInstallationInBackground(java.lang.String objectId, org.json.JSONObject params, ExecuteServiceCallback callback)
objectId
- objectIdparams
- installation parameterscallback
- JSONCallbackpublic void deleteInstallation(java.lang.String objectId) throws NCMBException
objectId
- object idNCMBException
- exception from NIFCLOUD mobile backendpublic void deleteInstallationInBackground(java.lang.String objectId, DoneCallback callback)
objectId
- objectIdcallback
- DoneCallbackpublic NCMBInstallation fetchInstallation(java.lang.String objectId) throws NCMBException
objectId
- object idNCMBException
- exception from NIFCLOUD mobile backendpublic void fetchInstallationInBackground(java.lang.String objectId, FetchCallback callback)
objectId
- objectIdcallback
- callback is executed after get installationpublic java.util.List searchInstallation(org.json.JSONObject conditions) throws NCMBException
conditions
- search conditionsNCMBException
- exception from NIFCLOUD mobile backendpublic void searchInstallationInBackground(org.json.JSONObject conditions, SearchInstallationCallback callback)
conditions
- search conditionscallback
- JSONCallback