UserTextMessage

public class UserTextMessage : UserMessage

The class that represents a user text message.

  • Text for the user text message.

    Declaration

    Swift

    public var text: String?
  • Type of the user message, currently the possible type is only text.

    Declaration

    Swift

    public var type: UserMessageType?
  • The speech request id for which this message is a response. Only applicable for messages sent using the voice recognition functionality.

    Declaration

    Swift

    public var speechId: String
  • Constructor for initializing a UserTextMessage object

    Declaration

    Swift

    public init(text: String, type: UserMessageType, speechId: String = "")

    Parameters

    text

    the text for the user text message.

    type

    the type of message as a UserMessageType, currently only text is the possible option.