EmailMessage
public struct EmailMessage : Equatable
Representation of a email message object associated with a email message in Platform SDK.
-
Direction of an email message.
See moreDeclaration
Swift
public enum Direction : Equatable
-
State of an email message.
See moreDeclaration
Swift
public enum State : Equatable
-
Unique identifier of the email message.
Declaration
Swift
public var id: String
-
Unique client reference identifier.
Declaration
Swift
public var clientRefId: String?
-
Unique identifier of the user of the email message.
Declaration
Swift
public var owner: String
-
List of owner identifiers and issuers associated with this email message.
Declaration
Swift
public var owners: [Owner]
-
Email address id that is associated with the account of the email message - which account sent/received this message.
Declaration
Swift
public var emailAddressId: String
-
Unique identifier of the email folder which the message is assigned to.
Declaration
Swift
public var folderId: String
-
Unique identifier of the previous email folder which the message resource was assigned to, if any.
Declaration
Swift
public var previousFolderId: String?
-
Date timestamp when the email message was created on the service.
Declaration
Swift
public var createdAt: Date
-
Date timestamp when the email message was last updated on the service.
Declaration
Swift
public var updatedAt: Date
-
Date timestamp when the email message was processed by the service.
Declaration
Swift
public var sortDate: Date
-
True if the user has seen the email message previously.
Declaration
Swift
public var seen: Bool
-
True if the email message has been replied to.
Declaration
Swift
public var repliedTo: Bool
-
True if the email message has been forwarded.
Declaration
Swift
public var forwarded: Bool
-
Direction of the email message.
Declaration
Swift
public var direction: Direction
-
State of the email message.
Declaration
Swift
public var state: State
-
The size, in bytes, of the encrypted RFC822 data stored in the backend. This value is used to calculate the total storage used by an email address or user and used to enforce email storage related
Declaration
Swift
public var size: Double
-
The encryption status of the message
Declaration
Swift
public var encryptionStatus: EncryptionStatus
-
Version of this entity, increments on update.
Declaration
Swift
public var version: Int
-
Array of from email addresses, eg the authors, of the email message.
Declaration
Swift
public var from: [EmailAddressAndName]
-
Array of to recipients of the email message.
Declaration
Swift
public var to: [EmailAddressAndName]
-
Array of carbon copy recipients of the email message.
Declaration
Swift
public var cc: [EmailAddressAndName]
-
Array of blind carbon copy recipients of the email message.
Declaration
Swift
public var bcc: [EmailAddressAndName]
-
Subject header of the email message.
Declaration
Swift
public var subject: String?
-
True if the email message includes one or more attachments.
Declaration
Swift
public var hasAttachments: Bool
-
Date timestamp of when the message was sent
Declaration
Swift
public var date: Date?
-
init(id:
clientRefId: owner: owners: emailAddressId: folderId: previousFolderId: createdAt: updatedAt: sortDate: seen: repliedTo: forwarded: direction: state: version: size: from: replyTo: to: cc: bcc: subject: hasAttachments: encryptionStatus: date: ) Initialize an instance of
EmailMessage
.Declaration
Swift
public init( id: String, clientRefId: String?, owner: String, owners: [Owner], emailAddressId: String, folderId: String, previousFolderId: String?, createdAt: Date, updatedAt: Date, sortDate: Date, seen: Bool, repliedTo: Bool, forwarded: Bool, direction: Direction, state: State, version: Int, size: Double, from: [EmailAddressAndName], replyTo: [EmailAddressAndName], to: [EmailAddressAndName], cc: [EmailAddressAndName], bcc: [EmailAddressAndName], subject: String?, hasAttachments: Bool, encryptionStatus: EncryptionStatus, date: Date? )