UpdateThreadRequest

public final class UpdateThreadRequest

Class representing a request to update a thread.

Constructors

Link copied to clipboard
public UpdateThreadRequest UpdateThreadRequest(@Json(name = "starred") Boolean starred, @Json(name = "unread") Boolean unread, @Json(name = "folders") List<String> folders)

Types

Link copied to clipboard
public final class Builder

Builder for UpdateThreadRequest.

Properties

Link copied to clipboard
private final List<String> folders

The IDs of the folders to apply, overwriting all previous folders for all messages in the thread.

Link copied to clipboard
private final Boolean starred

Sets all messages in the thread as starred or unstarred.

Link copied to clipboard
private final Boolean unread

Sets all messages in the thread as read or unread.

Functions

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

The IDs of the folders to apply, overwriting all previous folders for all messages in the thread.

Link copied to clipboard
public final Boolean getStarred()

Sets all messages in the thread as starred or unstarred.

Link copied to clipboard
public final Boolean getUnread()

Sets all messages in the thread as read or unread.