ListThreadsQueryParams

public final class ListThreadsQueryParams implements IQueryParams

Constructors

Link copied to clipboard
public ListThreadsQueryParams ListThreadsQueryParams(@Json(name = "limit") Integer limit, @Json(name = "page_token") String pageToken, @Json(name = "subject") String subject, @Json(name = "any_email") List<String> anyEmail, @Json(name = "to") List<String> to, @Json(name = "from") List<String> from, @Json(name = "cc") List<String> cc, @Json(name = "bcc") List<String> bcc, @Json(name = "in") List<String> inFolder, @Json(name = "unread") Boolean unread, @Json(name = "starred") Boolean starred, @Json(name = "latest_message_before") Long latestMessageBefore, @Json(name = "latest_message_after") Long latestMessageAfter, @Json(name = "has_attachment") Boolean hasAttachment, @Json(name = "search_query_native") String searchQueryNative)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final List<String> anyEmail

Return emails that have been sent or received from this list of email addresses.

Link copied to clipboard
private final List<String> bcc

Return items containing messages bcc'd on these email address.

Link copied to clipboard
private final List<String> cc

Return items containing messages cc'd on these email address.

Link copied to clipboard
private final List<String> from

Return items containing messages sent from these email address.

Link copied to clipboard
private final Boolean hasAttachment

Return emails that contain attachments.

Link copied to clipboard
private final List<String> inFolder

Return emails that are in these folder IDs.

Link copied to clipboard
private final Long latestMessageAfter

Return threads whose most recent message was received after this Unix timestamp.

Link copied to clipboard
private final Long latestMessageBefore

Return threads whose most recent message was received before this Unix timestamp.

Link copied to clipboard
private final Integer limit

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
private final String pageToken

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard
private final String searchQueryNative

The provider-specific query string used to search messages. Available for Google and Microsoft Graph only.

Link copied to clipboard
private final Boolean starred

Return emails that are starred.

Link copied to clipboard
private final String subject

Return items with a matching literal subject.

Link copied to clipboard
private final List<String> to

Return items containing messages sent to these email address.

Link copied to clipboard
private final Boolean unread

Return emails that are unread.

Functions

Link copied to clipboard

Convert the query parameters to a json-formatted map.

Link copied to clipboard
public final List<String> getAnyEmail()

Return emails that have been sent or received from this list of email addresses.

Link copied to clipboard
public final List<String> getBcc()

Return items containing messages bcc'd on these email address.

Link copied to clipboard
public final List<String> getCc()

Return items containing messages cc'd on these email address.

Link copied to clipboard
public final List<String> getFrom()

Return items containing messages sent from these email address.

Link copied to clipboard
public final Boolean getHasAttachment()

Return emails that contain attachments.

Link copied to clipboard
public final List<String> getInFolder()

Return emails that are in these folder IDs.

Link copied to clipboard
public final Long getLatestMessageAfter()

Return threads whose most recent message was received after this Unix timestamp.

Link copied to clipboard

Return threads whose most recent message was received before this Unix timestamp.

Link copied to clipboard
public final Integer getLimit()

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
public final String getPageToken()

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard

The provider-specific query string used to search messages. Available for Google and Microsoft Graph only.

Link copied to clipboard
public final Boolean getStarred()

Return emails that are starred.

Link copied to clipboard
public final String getSubject()

Return items with a matching literal subject.

Link copied to clipboard
public final List<String> getTo()

Return items containing messages sent to these email address.

Link copied to clipboard
public final Boolean getUnread()

Return emails that are unread.