UpdateMessageRequest

public final class UpdateMessageRequest

Class representing a request to update a message.

Constructors

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

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final List<String> folders

The IDs of the folders the message should appear in.

Link copied to clipboard
private final Map<String, Object> metadata

A list of key-value pairs storing additional data.

Link copied to clipboard
private final Boolean starred

Sets the message as starred or unstarred.

Link copied to clipboard
private final Boolean unread

Sets the message as read or unread.

Functions

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

The IDs of the folders the message should appear in.

Link copied to clipboard
public final Map<String, Object> getMetadata()

A list of key-value pairs storing additional data.

Link copied to clipboard
public final Boolean getStarred()

Sets the message as starred or unstarred.

Link copied to clipboard
public final Boolean getUnread()

Sets the message as read or unread.