Message

public struct Message

This struct represents a Message on Cisco Webex.

Since

1.2.0
  • The wrapper for the message text in different formats: plain text, markdown, and html. Please note this version of the SDK requires the application to convert markdown to html. Future version of the SDK will provide auto conversion from markdown to html.

    Since

    2.3.0
    See more

    Declaration

    Swift

    public struct Text
  • id

    The identifier of this message.

    Declaration

    Swift

    public private(set) var id: String? { get }
  • Returns the content of the message in as Message.Text object.

    Since

    2.3.0

    Declaration

    Swift

    public private(set) var textAsObject: Message.Text? { get }
  • The identifier of the space where this message was posted.

    Declaration

    Swift

    public private(set) var spaceId: String? { get }
  • The type of the space, “group”/“direct”, where the message is posted.

    Declaration

    Swift

    public private(set) var spaceType: SpaceType { get }
  • The identifier of the person who sent this message.

    Declaration

    Swift

    public var personId: String?
  • The email address of the person who sent this message.

    Declaration

    Swift

    public var personEmail: String?
  • The display name of the person who sent this message.

    Declaration

    Swift

    public var personDisplayName: String?
  • The identifier of the recipient when sending a private 1:1 message.

    Declaration

    Swift

    public private(set) var toPersonId: String? { get }
  • The email address of the recipient when sending a private 1:1 message.

    Declaration

    Swift

    public private(set) var toPersonEmail: EmailAddress? { get }
  • The timestamp that the message being created.

    Declaration

    Swift

    public var created: Date?
  • The timestamp that the message being edited.

    Declaration

    Swift

    public private(set) var updated: Date? { get }
  • Returns true if the receipient of the message is included in message’s mention list

    Since

    1.4.0

    Declaration

    Swift

    public var isSelfMentioned: Bool
  • Returns true if the message mentioned everyone in space.

    Since

    2.6.0

    Declaration

    Swift

    public private(set) var isAllMentioned: Bool { get }
  • Returns all people mentioned in the message

    Since

    2.6.0

    Declaration

    Swift

    public private(set) var mentions: [Mention]? { get }
  • The content of the message.

    Declaration

    Swift

    public var text: String? { get }
  • An array of file attachments in the message.

    Since

    1.4.0

    Declaration

    Swift

    public private(set) var files: [RemoteFile]? { get }
  • Returns the parent message for the reply message.

    Since

    2.5.0

    Declaration

    Swift

    public private(set) var parentId: String? { get }
  • Returns true for reply message.

    Since

    2.5.0

    Declaration

    Swift

    public private(set) var isReply: Bool { get }