Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* The version of the OpenAPI document: 6.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mailslurp.apis;
import com.mailslurp.clients.ApiCallback;
import com.mailslurp.clients.ApiClient;
import com.mailslurp.clients.ApiException;
import com.mailslurp.clients.ApiResponse;
import com.mailslurp.clients.Configuration;
import com.mailslurp.clients.Pair;
import com.mailslurp.clients.ProgressRequestBody;
import com.mailslurp.clients.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.mailslurp.models.CreateInboxReplierOptions;
import com.mailslurp.models.InboxReplierDto;
import java.time.OffsetDateTime;
import com.mailslurp.models.PageInboxReplierDto;
import com.mailslurp.models.PageInboxReplierEvents;
import java.util.UUID;
import com.mailslurp.models.UpdateInboxReplierOptions;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class InboxReplierControllerApi {
private ApiClient localVarApiClient;
public InboxReplierControllerApi() {
this(Configuration.getDefaultApiClient());
}
public InboxReplierControllerApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for createNewInboxReplier
* @param createInboxReplierOptions (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call createNewInboxReplierCall(CreateInboxReplierOptions createInboxReplierOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = createInboxReplierOptions;
// create path and map variables
String localVarPath = "/repliers";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createNewInboxReplierValidateBeforeCall(CreateInboxReplierOptions createInboxReplierOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'createInboxReplierOptions' is set
if (createInboxReplierOptions == null) {
throw new ApiException("Missing the required parameter 'createInboxReplierOptions' when calling createNewInboxReplier(Async)");
}
okhttp3.Call localVarCall = createNewInboxReplierCall(createInboxReplierOptions, _callback);
return localVarCall;
}
/**
* Create an inbox replier
* Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving
* @param createInboxReplierOptions (required)
* @return InboxReplierDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public InboxReplierDto createNewInboxReplier(CreateInboxReplierOptions createInboxReplierOptions) throws ApiException {
ApiResponse localVarResp = createNewInboxReplierWithHttpInfo(createInboxReplierOptions);
return localVarResp.getData();
}
/**
* Create an inbox replier
* Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving
* @param createInboxReplierOptions (required)
* @return ApiResponse<InboxReplierDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse createNewInboxReplierWithHttpInfo(CreateInboxReplierOptions createInboxReplierOptions) throws ApiException {
okhttp3.Call localVarCall = createNewInboxReplierValidateBeforeCall(createInboxReplierOptions, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create an inbox replier (asynchronously)
* Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving
* @param createInboxReplierOptions (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call createNewInboxReplierAsync(CreateInboxReplierOptions createInboxReplierOptions, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createNewInboxReplierValidateBeforeCall(createInboxReplierOptions, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for deleteInboxReplier
* @param id ID of inbox replier (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteInboxReplierCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repliers/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteInboxReplierValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteInboxReplier(Async)");
}
okhttp3.Call localVarCall = deleteInboxReplierCall(id, _callback);
return localVarCall;
}
/**
* Delete an inbox replier
* Delete inbox replier
* @param id ID of inbox replier (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public void deleteInboxReplier(UUID id) throws ApiException {
deleteInboxReplierWithHttpInfo(id);
}
/**
* Delete an inbox replier
* Delete inbox replier
* @param id ID of inbox replier (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public ApiResponse deleteInboxReplierWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = deleteInboxReplierValidateBeforeCall(id, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete an inbox replier (asynchronously)
* Delete inbox replier
* @param id ID of inbox replier (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteInboxReplierAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteInboxReplierValidateBeforeCall(id, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteInboxRepliers
* @param inboxId Optional inbox id to attach replier to (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteInboxRepliersCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repliers";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteInboxRepliersValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteInboxRepliersCall(inboxId, _callback);
return localVarCall;
}
/**
* Delete inbox repliers
* Delete inbox repliers. Accepts optional inboxId filter.
* @param inboxId Optional inbox id to attach replier to (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public void deleteInboxRepliers(UUID inboxId) throws ApiException {
deleteInboxRepliersWithHttpInfo(inboxId);
}
/**
* Delete inbox repliers
* Delete inbox repliers. Accepts optional inboxId filter.
* @param inboxId Optional inbox id to attach replier to (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public ApiResponse deleteInboxRepliersWithHttpInfo(UUID inboxId) throws ApiException {
okhttp3.Call localVarCall = deleteInboxRepliersValidateBeforeCall(inboxId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete inbox repliers (asynchronously)
* Delete inbox repliers. Accepts optional inboxId filter.
* @param inboxId Optional inbox id to attach replier to (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteInboxRepliersAsync(UUID inboxId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteInboxRepliersValidateBeforeCall(inboxId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for getInboxReplier
* @param id ID of inbox replier (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxReplierCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repliers/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getInboxReplierValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getInboxReplier(Async)");
}
okhttp3.Call localVarCall = getInboxReplierCall(id, _callback);
return localVarCall;
}
/**
* Get an inbox replier
* Get inbox ruleset
* @param id ID of inbox replier (required)
* @return InboxReplierDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public InboxReplierDto getInboxReplier(UUID id) throws ApiException {
ApiResponse localVarResp = getInboxReplierWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Get an inbox replier
* Get inbox ruleset
* @param id ID of inbox replier (required)
* @return ApiResponse<InboxReplierDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getInboxReplierWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = getInboxReplierValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get an inbox replier (asynchronously)
* Get inbox ruleset
* @param id ID of inbox replier (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxReplierAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getInboxReplierValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getInboxReplierEvents
* @param id ID of inbox replier (required)
* @param page Optional page index in inbox replier event list pagination (optional, default to 0)
* @param size Optional page size in inbox replier event list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxReplierEventsCall(UUID id, Integer page, Integer size, String sort, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repliers/{id}/events"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (page != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
}
if (size != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size));
}
if (sort != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getInboxReplierEventsValidateBeforeCall(UUID id, Integer page, Integer size, String sort, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getInboxReplierEvents(Async)");
}
okhttp3.Call localVarCall = getInboxReplierEventsCall(id, page, size, sort, _callback);
return localVarCall;
}
/**
* Get an inbox replier event list
* Get inbox ruleset events
* @param id ID of inbox replier (required)
* @param page Optional page index in inbox replier event list pagination (optional, default to 0)
* @param size Optional page size in inbox replier event list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @return PageInboxReplierEvents
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public PageInboxReplierEvents getInboxReplierEvents(UUID id, Integer page, Integer size, String sort) throws ApiException {
ApiResponse localVarResp = getInboxReplierEventsWithHttpInfo(id, page, size, sort);
return localVarResp.getData();
}
/**
* Get an inbox replier event list
* Get inbox ruleset events
* @param id ID of inbox replier (required)
* @param page Optional page index in inbox replier event list pagination (optional, default to 0)
* @param size Optional page size in inbox replier event list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @return ApiResponse<PageInboxReplierEvents>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getInboxReplierEventsWithHttpInfo(UUID id, Integer page, Integer size, String sort) throws ApiException {
okhttp3.Call localVarCall = getInboxReplierEventsValidateBeforeCall(id, page, size, sort, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get an inbox replier event list (asynchronously)
* Get inbox ruleset events
* @param id ID of inbox replier (required)
* @param page Optional page index in inbox replier event list pagination (optional, default to 0)
* @param size Optional page size in inbox replier event list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxReplierEventsAsync(UUID id, Integer page, Integer size, String sort, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getInboxReplierEventsValidateBeforeCall(id, page, size, sort, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getInboxRepliers
* @param inboxId Optional inbox id to get repliers from (optional)
* @param page Optional page index in inbox replier list pagination (optional, default to 0)
* @param size Optional page size in inbox replier list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param since Filter by created at after the given timestamp (optional)
* @param before Filter by created at before the given timestamp (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxRepliersCall(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repliers";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId));
}
if (page != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
}
if (size != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size));
}
if (sort != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort));
}
if (since != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since));
}
if (before != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getInboxRepliersValidateBeforeCall(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getInboxRepliersCall(inboxId, page, size, sort, since, before, _callback);
return localVarCall;
}
/**
* List inbox repliers
* List all repliers attached to an inbox
* @param inboxId Optional inbox id to get repliers from (optional)
* @param page Optional page index in inbox replier list pagination (optional, default to 0)
* @param size Optional page size in inbox replier list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param since Filter by created at after the given timestamp (optional)
* @param before Filter by created at before the given timestamp (optional)
* @return PageInboxReplierDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public PageInboxReplierDto getInboxRepliers(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException {
ApiResponse localVarResp = getInboxRepliersWithHttpInfo(inboxId, page, size, sort, since, before);
return localVarResp.getData();
}
/**
* List inbox repliers
* List all repliers attached to an inbox
* @param inboxId Optional inbox id to get repliers from (optional)
* @param page Optional page index in inbox replier list pagination (optional, default to 0)
* @param size Optional page size in inbox replier list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param since Filter by created at after the given timestamp (optional)
* @param before Filter by created at before the given timestamp (optional)
* @return ApiResponse<PageInboxReplierDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getInboxRepliersWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException {
okhttp3.Call localVarCall = getInboxRepliersValidateBeforeCall(inboxId, page, size, sort, since, before, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* List inbox repliers (asynchronously)
* List all repliers attached to an inbox
* @param inboxId Optional inbox id to get repliers from (optional)
* @param page Optional page index in inbox replier list pagination (optional, default to 0)
* @param size Optional page size in inbox replier list pagination (optional, default to 20)
* @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC)
* @param since Filter by created at after the given timestamp (optional)
* @param before Filter by created at before the given timestamp (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getInboxRepliersAsync(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getInboxRepliersValidateBeforeCall(inboxId, page, size, sort, since, before, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for updateInboxReplier
* @param id ID of inbox replier (required)
* @param updateInboxReplierOptions (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call updateInboxReplierCall(UUID id, UpdateInboxReplierOptions updateInboxReplierOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = updateInboxReplierOptions;
// create path and map variables
String localVarPath = "/repliers/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateInboxReplierValidateBeforeCall(UUID id, UpdateInboxReplierOptions updateInboxReplierOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateInboxReplier(Async)");
}
// verify the required parameter 'updateInboxReplierOptions' is set
if (updateInboxReplierOptions == null) {
throw new ApiException("Missing the required parameter 'updateInboxReplierOptions' when calling updateInboxReplier(Async)");
}
okhttp3.Call localVarCall = updateInboxReplierCall(id, updateInboxReplierOptions, _callback);
return localVarCall;
}
/**
* Update an inbox replier
* Update inbox ruleset
* @param id ID of inbox replier (required)
* @param updateInboxReplierOptions (required)
* @return InboxReplierDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public InboxReplierDto updateInboxReplier(UUID id, UpdateInboxReplierOptions updateInboxReplierOptions) throws ApiException {
ApiResponse localVarResp = updateInboxReplierWithHttpInfo(id, updateInboxReplierOptions);
return localVarResp.getData();
}
/**
* Update an inbox replier
* Update inbox ruleset
* @param id ID of inbox replier (required)
* @param updateInboxReplierOptions (required)
* @return ApiResponse<InboxReplierDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse updateInboxReplierWithHttpInfo(UUID id, UpdateInboxReplierOptions updateInboxReplierOptions) throws ApiException {
okhttp3.Call localVarCall = updateInboxReplierValidateBeforeCall(id, updateInboxReplierOptions, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Update an inbox replier (asynchronously)
* Update inbox ruleset
* @param id ID of inbox replier (required)
* @param updateInboxReplierOptions (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call updateInboxReplierAsync(UUID id, UpdateInboxReplierOptions updateInboxReplierOptions, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = updateInboxReplierValidateBeforeCall(id, updateInboxReplierOptions, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}