public class WaitForControllerApi extends Object
Constructor and Description |
---|
WaitForControllerApi() |
WaitForControllerApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
List<EmailPreview> |
waitFor(WaitForConditions waitForConditions)
Wait for an email to match the provided filter conditions such as subject contains keyword.
|
okhttp3.Call |
waitForAsync(WaitForConditions waitForConditions,
ApiCallback<List<EmailPreview>> _callback)
Wait for an email to match the provided filter conditions such as subject contains keyword.
|
okhttp3.Call |
waitForCall(WaitForConditions waitForConditions,
ApiCallback _callback)
Build call for waitFor
|
List<EmailPreview> |
waitForEmailCount(UUID inboxId,
Integer count,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay)
Wait for and return count number of emails.
|
okhttp3.Call |
waitForEmailCountAsync(UUID inboxId,
Integer count,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
ApiCallback<List<EmailPreview>> _callback)
Wait for and return count number of emails.
|
okhttp3.Call |
waitForEmailCountCall(UUID inboxId,
Integer count,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
ApiCallback _callback)
Build call for waitForEmailCount
|
ApiResponse<List<EmailPreview>> |
waitForEmailCountWithHttpInfo(UUID inboxId,
Integer count,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay)
Wait for and return count number of emails.
|
Email |
waitForLatestEmail(UUID inboxId,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay)
Fetch inbox's latest email or if empty wait for an email to arrive
Will return either the last received email or wait for an email to arrive and return that.
|
okhttp3.Call |
waitForLatestEmailAsync(UUID inboxId,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
ApiCallback<Email> _callback)
Fetch inbox's latest email or if empty wait for an email to arrive (asynchronously)
Will return either the last received email or wait for an email to arrive and return that.
|
okhttp3.Call |
waitForLatestEmailCall(UUID inboxId,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
ApiCallback _callback)
Build call for waitForLatestEmail
|
ApiResponse<Email> |
waitForLatestEmailWithHttpInfo(UUID inboxId,
Long timeout,
Boolean unreadOnly,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay)
Fetch inbox's latest email or if empty wait for an email to arrive
Will return either the last received email or wait for an email to arrive and return that.
|
SmsDto |
waitForLatestSms(WaitForSingleSmsOptions waitForSingleSmsOptions)
Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.
|
okhttp3.Call |
waitForLatestSmsAsync(WaitForSingleSmsOptions waitForSingleSmsOptions,
ApiCallback<SmsDto> _callback)
Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.
|
okhttp3.Call |
waitForLatestSmsCall(WaitForSingleSmsOptions waitForSingleSmsOptions,
ApiCallback _callback)
Build call for waitForLatestSms
|
ApiResponse<SmsDto> |
waitForLatestSmsWithHttpInfo(WaitForSingleSmsOptions waitForSingleSmsOptions)
Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.
|
List<EmailPreview> |
waitForMatchingEmails(UUID inboxId,
Integer count,
MatchOptions matchOptions,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
Long timeout,
Boolean unreadOnly)
Wait or return list of emails that match simple matching patterns
Perform a search of emails in an inbox with the given patterns.
|
okhttp3.Call |
waitForMatchingEmailsAsync(UUID inboxId,
Integer count,
MatchOptions matchOptions,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
Long timeout,
Boolean unreadOnly,
ApiCallback<List<EmailPreview>> _callback)
Wait or return list of emails that match simple matching patterns (asynchronously)
Perform a search of emails in an inbox with the given patterns.
|
okhttp3.Call |
waitForMatchingEmailsCall(UUID inboxId,
Integer count,
MatchOptions matchOptions,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
Long timeout,
Boolean unreadOnly,
ApiCallback _callback)
Build call for waitForMatchingEmails
|
ApiResponse<List<EmailPreview>> |
waitForMatchingEmailsWithHttpInfo(UUID inboxId,
Integer count,
MatchOptions matchOptions,
OffsetDateTime before,
OffsetDateTime since,
String sort,
Long delay,
Long timeout,
Boolean unreadOnly)
Wait or return list of emails that match simple matching patterns
Perform a search of emails in an inbox with the given patterns.
|
Email |
waitForMatchingFirstEmail(UUID inboxId,
MatchOptions matchOptions,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay)
Wait for or return the first email that matches provided MatchOptions array
Perform a search of emails in an inbox with the given patterns.
|
okhttp3.Call |
waitForMatchingFirstEmailAsync(UUID inboxId,
MatchOptions matchOptions,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay,
ApiCallback<Email> _callback)
Wait for or return the first email that matches provided MatchOptions array (asynchronously)
Perform a search of emails in an inbox with the given patterns.
|
okhttp3.Call |
waitForMatchingFirstEmailCall(UUID inboxId,
MatchOptions matchOptions,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay,
ApiCallback _callback)
Build call for waitForMatchingFirstEmail
|
ApiResponse<Email> |
waitForMatchingFirstEmailWithHttpInfo(UUID inboxId,
MatchOptions matchOptions,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay)
Wait for or return the first email that matches provided MatchOptions array
Perform a search of emails in an inbox with the given patterns.
|
Email |
waitForNthEmail(UUID inboxId,
Integer index,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay)
Wait for or fetch the email with a given index in the inbox specified.
|
okhttp3.Call |
waitForNthEmailAsync(UUID inboxId,
Integer index,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay,
ApiCallback<Email> _callback)
Wait for or fetch the email with a given index in the inbox specified.
|
okhttp3.Call |
waitForNthEmailCall(UUID inboxId,
Integer index,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay,
ApiCallback _callback)
Build call for waitForNthEmail
|
ApiResponse<Email> |
waitForNthEmailWithHttpInfo(UUID inboxId,
Integer index,
Long timeout,
Boolean unreadOnly,
OffsetDateTime since,
OffsetDateTime before,
String sort,
Long delay)
Wait for or fetch the email with a given index in the inbox specified.
|
List<SmsPreview> |
waitForSms(WaitForSmsConditions waitForSmsConditions)
Wait for an SMS message to match the provided filter conditions such as body contains keyword.
|
okhttp3.Call |
waitForSmsAsync(WaitForSmsConditions waitForSmsConditions,
ApiCallback<List<SmsPreview>> _callback)
Wait for an SMS message to match the provided filter conditions such as body contains keyword.
|
okhttp3.Call |
waitForSmsCall(WaitForSmsConditions waitForSmsConditions,
ApiCallback _callback)
Build call for waitForSms
|
ApiResponse<List<SmsPreview>> |
waitForSmsWithHttpInfo(WaitForSmsConditions waitForSmsConditions)
Wait for an SMS message to match the provided filter conditions such as body contains keyword.
|
ApiResponse<List<EmailPreview>> |
waitForWithHttpInfo(WaitForConditions waitForConditions)
Wait for an email to match the provided filter conditions such as subject contains keyword.
|
public WaitForControllerApi()
public WaitForControllerApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call waitForCall(WaitForConditions waitForConditions, ApiCallback _callback) throws ApiException
waitForConditions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public List<EmailPreview> waitFor(WaitForConditions waitForConditions) throws ApiException
waitForConditions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<List<EmailPreview>> waitForWithHttpInfo(WaitForConditions waitForConditions) throws ApiException
waitForConditions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForAsync(WaitForConditions waitForConditions, ApiCallback<List<EmailPreview>> _callback) throws ApiException
waitForConditions
- (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForEmailCountCall(UUID inboxId, Integer count, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, ApiCallback _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater that 1 (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public List<EmailPreview> waitForEmailCount(UUID inboxId, Integer count, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater that 1 (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<List<EmailPreview>> waitForEmailCountWithHttpInfo(UUID inboxId, Integer count, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater that 1 (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForEmailCountAsync(UUID inboxId, Integer count, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, ApiCallback<List<EmailPreview>> _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater that 1 (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForLatestEmailCall(UUID inboxId, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, ApiCallback _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only. (optional, default to false)before
- Filter for emails that were before after the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public Email waitForLatestEmail(UUID inboxId, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only. (optional, default to false)before
- Filter for emails that were before after the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<Email> waitForLatestEmailWithHttpInfo(UUID inboxId, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only. (optional, default to false)before
- Filter for emails that were before after the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForLatestEmailAsync(UUID inboxId, Long timeout, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, ApiCallback<Email> _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only. (optional, default to false)before
- Filter for emails that were before after the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForLatestSmsCall(WaitForSingleSmsOptions waitForSingleSmsOptions, ApiCallback _callback) throws ApiException
waitForSingleSmsOptions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public SmsDto waitForLatestSms(WaitForSingleSmsOptions waitForSingleSmsOptions) throws ApiException
waitForSingleSmsOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<SmsDto> waitForLatestSmsWithHttpInfo(WaitForSingleSmsOptions waitForSingleSmsOptions) throws ApiException
waitForSingleSmsOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForLatestSmsAsync(WaitForSingleSmsOptions waitForSingleSmsOptions, ApiCallback<SmsDto> _callback) throws ApiException
waitForSingleSmsOptions
- (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForMatchingEmailsCall(UUID inboxId, Integer count, MatchOptions matchOptions, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, Long timeout, Boolean unreadOnly, ApiCallback _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater or equal to 1 (required)matchOptions
- (required)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public List<EmailPreview> waitForMatchingEmails(UUID inboxId, Integer count, MatchOptions matchOptions, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, Long timeout, Boolean unreadOnly) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater or equal to 1 (required)matchOptions
- (required)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<List<EmailPreview>> waitForMatchingEmailsWithHttpInfo(UUID inboxId, Integer count, MatchOptions matchOptions, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, Long timeout, Boolean unreadOnly) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater or equal to 1 (required)matchOptions
- (required)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForMatchingEmailsAsync(UUID inboxId, Integer count, MatchOptions matchOptions, OffsetDateTime before, OffsetDateTime since, String sort, Long delay, Long timeout, Boolean unreadOnly, ApiCallback<List<EmailPreview>> _callback) throws ApiException
inboxId
- Id of the inbox we are fetching emails from (required)count
- Number of emails to wait for. Must be greater or equal to 1 (required)matchOptions
- (required)before
- Filter for emails that were received before the given timestamp (optional)since
- Filter for emails that were received after the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForMatchingFirstEmailCall(UUID inboxId, MatchOptions matchOptions, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay, ApiCallback _callback) throws ApiException
inboxId
- Id of the inbox we are matching an email for (required)matchOptions
- (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public Email waitForMatchingFirstEmail(UUID inboxId, MatchOptions matchOptions, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are matching an email for (required)matchOptions
- (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<Email> waitForMatchingFirstEmailWithHttpInfo(UUID inboxId, MatchOptions matchOptions, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox we are matching an email for (required)matchOptions
- (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForMatchingFirstEmailAsync(UUID inboxId, MatchOptions matchOptions, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay, ApiCallback<Email> _callback) throws ApiException
inboxId
- Id of the inbox we are matching an email for (required)matchOptions
- (required)timeout
- Max milliseconds to wait (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForNthEmailCall(UUID inboxId, Integer index, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay, ApiCallback _callback) throws ApiException
inboxId
- Id of the inbox you are fetching emails from (optional)index
- Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0)timeout
- Max milliseconds to wait for the nth email if not already present (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public Email waitForNthEmail(UUID inboxId, Integer index, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox you are fetching emails from (optional)index
- Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0)timeout
- Max milliseconds to wait for the nth email if not already present (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<Email> waitForNthEmailWithHttpInfo(UUID inboxId, Integer index, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay) throws ApiException
inboxId
- Id of the inbox you are fetching emails from (optional)index
- Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0)timeout
- Max milliseconds to wait for the nth email if not already present (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForNthEmailAsync(UUID inboxId, Integer index, Long timeout, Boolean unreadOnly, OffsetDateTime since, OffsetDateTime before, String sort, Long delay, ApiCallback<Email> _callback) throws ApiException
inboxId
- Id of the inbox you are fetching emails from (optional)index
- Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 (optional, default to 0)timeout
- Max milliseconds to wait for the nth email if not already present (optional)unreadOnly
- Optional filter for unread only (optional, default to false)since
- Filter for emails that were received after the given timestamp (optional)before
- Filter for emails that were received before the given timestamp (optional)sort
- Sort direction (optional)delay
- Max milliseconds delay between calls (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForSmsCall(WaitForSmsConditions waitForSmsConditions, ApiCallback _callback) throws ApiException
waitForSmsConditions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public List<SmsPreview> waitForSms(WaitForSmsConditions waitForSmsConditions) throws ApiException
waitForSmsConditions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<List<SmsPreview>> waitForSmsWithHttpInfo(WaitForSmsConditions waitForSmsConditions) throws ApiException
waitForSmsConditions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call waitForSmsAsync(WaitForSmsConditions waitForSmsConditions, ApiCallback<List<SmsPreview>> _callback) throws ApiException
waitForSmsConditions
- (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 objectStatus Code | Description | Response Headers |
200 | OK | - |
Copyright © 2023. All rights reserved.