PhoneMessage

public struct PhoneMessage

A Message that has been either received or sent by the user.

  • Enum that represents the direction of the message.

    Declaration

    Swift

    public enum Direction
  • The state of the message

    Declaration

    Swift

    public enum State
  • id

    Unique ID of the message

    Declaration

    Swift

    public let id: String
  • The ID of the owner of the message

    Declaration

    Swift

    public let owner: String
  • The conversation ID that this message belongs to

    Declaration

    Swift

    public let conversation: String
  • Timestamp that represents the last time the message got updated

    Declaration

    Swift

    public let updated: Date
  • Timestamp that represents the time the message got created

    Declaration

    Swift

    public let created: Date
  • The E164Number of the local phone number

    Declaration

    Swift

    public let localPhoneNumber: String
  • The E164Number of the remote phone number

    Declaration

    Swift

    public let remotePhoneNumber: String
  • The body of the message

    Declaration

    Swift

    public let body: String?
  • The direction of the message. Either outbound or inbound

    Declaration

    Swift

    public let direction: Direction
  • The state of the sending of the message.

    Declaration

    Swift

    public let state: State
  • Media Attachments

    Declaration

    Swift

    public let media: [MediaObject]