PartialEmailMessage

public struct PartialEmailMessage : Equatable

Representation of an email message object without any unsealed attributes associated with a email message in Platform SDK.

  • id

    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: EmailMessage.Direction
  • State of the email message.

    Declaration

    Swift

    public var state: EmailMessage.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
  • Version of this entity, increments on update.

    Declaration

    Swift

    public var version: Int
  • Date timestamp of when the message was sent

    Declaration

    Swift

    public var date: 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: EmailMessage.Direction,
        state: EmailMessage.State,
        version: Int,
        size: Double,
        encryptionStatus: EncryptionStatus,
        date: Date?
    )