public class NotificationRulesApi extends Object
| Constructor and Description |
|---|
NotificationRulesApi() |
NotificationRulesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
NotificationRule |
createNotificationRule(NotificationRuleParams body)
Create a new notification rule
Create a new notification rule for a specific user.
|
com.squareup.okhttp.Call |
createNotificationRuleAsync(NotificationRuleParams body,
ApiCallback<NotificationRule> callback)
Create a new notification rule (asynchronously)
Create a new notification rule for a specific user.
|
com.squareup.okhttp.Call |
createNotificationRuleCall(NotificationRuleParams body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createNotificationRule
|
ApiResponse<NotificationRule> |
createNotificationRuleWithHttpInfo(NotificationRuleParams body)
Create a new notification rule
Create a new notification rule for a specific user.
|
IdentifierList |
deleteAllNotificationRules()
Delete all notification rules
Delete all notification rules of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
deleteAllNotificationRulesAsync(ApiCallback<IdentifierList> callback)
Delete all notification rules (asynchronously)
Delete all notification rules of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
deleteAllNotificationRulesCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteAllNotificationRules
|
ApiResponse<IdentifierList> |
deleteAllNotificationRulesWithHttpInfo()
Delete all notification rules
Delete all notification rules of the user that is authorized by the access_token.
|
void |
deleteNotificationRule(Long id)
Delete a notification rule
Delete a single notification rule of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
deleteNotificationRuleAsync(Long id,
ApiCallback<Void> callback)
Delete a notification rule (asynchronously)
Delete a single notification rule of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
deleteNotificationRuleCall(Long id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteNotificationRule
|
ApiResponse<Void> |
deleteNotificationRuleWithHttpInfo(Long id)
Delete a notification rule
Delete a single notification rule of the user that is authorized by the access_token.
|
NotificationRuleList |
getAndSearchAllNotificationRules(List<Long> ids,
String triggerEvent,
Boolean includeDetails)
Get and search all notification rules
Get notification rules of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
getAndSearchAllNotificationRulesAsync(List<Long> ids,
String triggerEvent,
Boolean includeDetails,
ApiCallback<NotificationRuleList> callback)
Get and search all notification rules (asynchronously)
Get notification rules of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
getAndSearchAllNotificationRulesCall(List<Long> ids,
String triggerEvent,
Boolean includeDetails,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAndSearchAllNotificationRules
|
ApiResponse<NotificationRuleList> |
getAndSearchAllNotificationRulesWithHttpInfo(List<Long> ids,
String triggerEvent,
Boolean includeDetails)
Get and search all notification rules
Get notification rules of the user that is authorized by the access_token.
|
ApiClient |
getApiClient() |
NotificationRule |
getNotificationRule(Long id)
Get a notification rule
Get a single notification rule of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
getNotificationRuleAsync(Long id,
ApiCallback<NotificationRule> callback)
Get a notification rule (asynchronously)
Get a single notification rule of the user that is authorized by the access_token.
|
com.squareup.okhttp.Call |
getNotificationRuleCall(Long id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getNotificationRule
|
ApiResponse<NotificationRule> |
getNotificationRuleWithHttpInfo(Long id)
Get a notification rule
Get a single notification rule of the user that is authorized by the access_token.
|
void |
setApiClient(ApiClient apiClient) |
public NotificationRulesApi()
public NotificationRulesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createNotificationRuleCall(NotificationRuleParams body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - Notification rule parameters (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic NotificationRule createNotificationRule(NotificationRuleParams body) throws ApiException
body - Notification rule parameters (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<NotificationRule> createNotificationRuleWithHttpInfo(NotificationRuleParams body) throws ApiException
body - Notification rule parameters (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createNotificationRuleAsync(NotificationRuleParams body, ApiCallback<NotificationRule> callback) throws ApiException
body - Notification rule parameters (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteAllNotificationRulesCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic IdentifierList deleteAllNotificationRules() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<IdentifierList> deleteAllNotificationRulesWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAllNotificationRulesAsync(ApiCallback<IdentifierList> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteNotificationRuleCall(Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Identifier of the notification rule to delete (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteNotificationRule(Long id) throws ApiException
id - Identifier of the notification rule to delete (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteNotificationRuleWithHttpInfo(Long id) throws ApiException
id - Identifier of the notification rule to delete (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteNotificationRuleAsync(Long id, ApiCallback<Void> callback) throws ApiException
id - Identifier of the notification rule to delete (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getAndSearchAllNotificationRulesCall(List<Long> ids, String triggerEvent, Boolean includeDetails, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
ids - A comma-separated list of notification rule identifiers. If specified, then only notification rules whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 1000. (optional)triggerEvent - If specified, then only notification rules with given trigger event will be regarded. (optional)includeDetails - If specified, then only notification rules that include or not include details will be regarded. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic NotificationRuleList getAndSearchAllNotificationRules(List<Long> ids, String triggerEvent, Boolean includeDetails) throws ApiException
ids - A comma-separated list of notification rule identifiers. If specified, then only notification rules whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 1000. (optional)triggerEvent - If specified, then only notification rules with given trigger event will be regarded. (optional)includeDetails - If specified, then only notification rules that include or not include details will be regarded. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<NotificationRuleList> getAndSearchAllNotificationRulesWithHttpInfo(List<Long> ids, String triggerEvent, Boolean includeDetails) throws ApiException
ids - A comma-separated list of notification rule identifiers. If specified, then only notification rules whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 1000. (optional)triggerEvent - If specified, then only notification rules with given trigger event will be regarded. (optional)includeDetails - If specified, then only notification rules that include or not include details will be regarded. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAndSearchAllNotificationRulesAsync(List<Long> ids, String triggerEvent, Boolean includeDetails, ApiCallback<NotificationRuleList> callback) throws ApiException
ids - A comma-separated list of notification rule identifiers. If specified, then only notification rules whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 1000. (optional)triggerEvent - If specified, then only notification rules with given trigger event will be regarded. (optional)includeDetails - If specified, then only notification rules that include or not include details will be regarded. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getNotificationRuleCall(Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Identifier of requested notification rule (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic NotificationRule getNotificationRule(Long id) throws ApiException
id - Identifier of requested notification rule (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<NotificationRule> getNotificationRuleWithHttpInfo(Long id) throws ApiException
id - Identifier of requested notification rule (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getNotificationRuleAsync(Long id, ApiCallback<NotificationRule> callback) throws ApiException
id - Identifier of requested notification rule (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2018. All rights reserved.