public class AlertSubscriptionsApi extends Object
| Constructor and Description |
|---|
AlertSubscriptionsApi() |
AlertSubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
AlertsSubscriptionDTO |
getSubscribedAlertTypes()
Get the list of API Admin alert types subscribed by the user.
|
com.squareup.okhttp.Call |
getSubscribedAlertTypesAsync(ApiCallback<AlertsSubscriptionDTO> callback)
Get the list of API Admin alert types subscribed by the user.
|
com.squareup.okhttp.Call |
getSubscribedAlertTypesCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSubscribedAlertTypes
|
ApiResponse<AlertsSubscriptionDTO> |
getSubscribedAlertTypesWithHttpInfo()
Get the list of API Admin alert types subscribed by the user.
|
void |
setApiClient(ApiClient apiClient) |
AlertsSubscriptionDTO |
subscribeToAlerts(AlertsSubscriptionDTO body)
Subscribe to an admin alert.
|
com.squareup.okhttp.Call |
subscribeToAlertsAsync(AlertsSubscriptionDTO body,
ApiCallback<AlertsSubscriptionDTO> callback)
Subscribe to an admin alert.
|
com.squareup.okhttp.Call |
subscribeToAlertsCall(AlertsSubscriptionDTO body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subscribeToAlerts
|
ApiResponse<AlertsSubscriptionDTO> |
subscribeToAlertsWithHttpInfo(AlertsSubscriptionDTO body)
Subscribe to an admin alert.
|
void |
unsubscribeAllAlerts()
Unsubscribe user from all the admin alert types.
|
com.squareup.okhttp.Call |
unsubscribeAllAlertsAsync(ApiCallback<Void> callback)
Unsubscribe user from all the admin alert types.
|
com.squareup.okhttp.Call |
unsubscribeAllAlertsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for unsubscribeAllAlerts
|
ApiResponse<Void> |
unsubscribeAllAlertsWithHttpInfo()
Unsubscribe user from all the admin alert types.
|
public AlertSubscriptionsApi()
public AlertSubscriptionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getSubscribedAlertTypesCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic AlertsSubscriptionDTO getSubscribedAlertTypes() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AlertsSubscriptionDTO> getSubscribedAlertTypesWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSubscribedAlertTypesAsync(ApiCallback<AlertsSubscriptionDTO> 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 subscribeToAlertsCall(AlertsSubscriptionDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - The alerts list and the email list to subscribe. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic AlertsSubscriptionDTO subscribeToAlerts(AlertsSubscriptionDTO body) throws ApiException
body - The alerts list and the email list to subscribe. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AlertsSubscriptionDTO> subscribeToAlertsWithHttpInfo(AlertsSubscriptionDTO body) throws ApiException
body - The alerts list and the email list to subscribe. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscribeToAlertsAsync(AlertsSubscriptionDTO body, ApiCallback<AlertsSubscriptionDTO> callback) throws ApiException
body - The alerts list and the email list to subscribe. (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 unsubscribeAllAlertsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void unsubscribeAllAlerts()
throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> unsubscribeAllAlertsWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call unsubscribeAllAlertsAsync(ApiCallback<Void> 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 objectCopyright © 2020 WSO2 Inc. All rights reserved.