public class AddPromotionApi extends Object
| Constructor and Description |
|---|
AddPromotionApi() |
AddPromotionApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
EventResponse |
addPromotion(AddPromotion JSON)
Use add_promotion to record when a user adds one or more promotions to their account.
|
com.squareup.okhttp.Call |
addPromotionAsync(AddPromotion JSON,
ApiCallback<EventResponse> callback)
Use add_promotion to record when a user adds one or more promotions to their account.
|
com.squareup.okhttp.Call |
addPromotionCall(AddPromotion JSON,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addPromotion
|
ApiResponse<EventResponse> |
addPromotionWithHttpInfo(AddPromotion JSON)
Use add_promotion to record when a user adds one or more promotions to their account.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public AddPromotionApi()
public AddPromotionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call addPromotionCall(AddPromotion JSON, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
JSON - Pass added promotion info to thirdwatch. Only `_userID` is required field. But this should contain promotion info. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic EventResponse addPromotion(AddPromotion JSON) throws ApiException
JSON - Pass added promotion info to thirdwatch. Only `_userID` is required field. But this should contain promotion info. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<EventResponse> addPromotionWithHttpInfo(AddPromotion JSON) throws ApiException
JSON - Pass added promotion info to thirdwatch. Only `_userID` is required field. But this should contain promotion info. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addPromotionAsync(AddPromotion JSON, ApiCallback<EventResponse> callback) throws ApiException
JSON - Pass added promotion info to thirdwatch. Only `_userID` is required field. But this should contain promotion info. (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 © 2017. All rights reserved.