Class: VacationResponse

VacationResponse

new VacationResponse(jmap, optsopt)

This class represents a JMAP VacationResponse.
The VacationResponse object represents the state of vacation-response related settings for an account.

Parameters:
Name Type Attributes Description
jmap Client

The Client instance that created this VacationResponse.

opts Object <optional>

The optional properties of this VacationResponse.

Properties
Name Type Attributes Default Description
isEnabled Boolean <optional>
false

Is the vacation response enabled?

isActivated Boolean <optional>
false

Is the vacation response activated?

fromDate Date <optional>
null

The date/time after which messages that arrive should receive the user’s vacation response, in UTC.

toDate Date <optional>
null

The date/time after which messages that arrive should no longer receive the user’s vacation response, in UTC.

subject String <optional>
null

The subject that will be used by the mail sent in response to messages when the vacation response is enabled.

textBody Number <optional>
null

The plain text part of the message to send in response to messages when the vacation response is enabled.

htmlBody String <optional>
null

The HTML part of the message to send in response to messages when the vacation response is enabled.

Source:
See:

Extends

Methods

(static) fromJSONObject(jmap, object) → {VacationResponse}

Creates an VacationResponse from its JSON representation.

Parameters:
Name Type Description
jmap Client

The Client instance that created this VacationResponse.

object Object

The JSON representation of the VacationResponse, as a Javascript object.

Source:
Returns:
Type
VacationResponse

toJSONObject()

Creates a JSON representation from this VacationResponse.

Source:
Returns:

JSON object with only owned properties and non-null default values.