Module Values.MessageSource

The object that provides message text and its type.

Sourcetype nonrec t = {
  1. plainTextMessage : PlainTextMessage.t option;
    (*

    A message in plain text format.

    *)
  2. customPayload : CustomPayload.t option;
    (*

    A message in a custom format defined by the client application.

    *)
  3. ssmlMessage : SSMLMessage.t option;
    (*

    A message in Speech Synthesis Markup Language (SSML).

    *)
  4. imageResponseCard : ImageResponseCard.t option;
    (*

    A message that defines a response card that the client application can show to the user.

    *)
}
Sourceval make : ?plainTextMessage:??? -> ?customPayload:??? -> ?ssmlMessage:??? -> ?imageResponseCard:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t