DialogNodeOutputGenericDialogNodeOutputResponseTypeOption

public struct DialogNodeOutputGenericDialogNodeOutputResponseTypeOption : Codable, Equatable

DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.

Enums with an associated value of DialogNodeOutputGenericDialogNodeOutputResponseTypeOption: DialogNodeOutputGeneric

  • The preferred type of control to display, if supported by the channel.

    See more

    Declaration

    Swift

    public enum Preference : String
  • The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.

    Declaration

    Swift

    public var responseType: String
  • An optional title to show before the response.

    Declaration

    Swift

    public var title: String
  • An optional description to show with the response.

    Declaration

    Swift

    public var description: String?
  • The preferred type of control to display, if supported by the channel.

    Declaration

    Swift

    public var preference: String?
  • An array of objects describing the options from which the user can choose. You can include up to 20 options.

    Declaration

    Swift

    public var options: [DialogNodeOutputOptionsElement]
  • An array of objects specifying channels for which the response is intended.

    Declaration

    Swift

    public var channels: [ResponseGenericChannel]?
  • Initialize a DialogNodeOutputGenericDialogNodeOutputResponseTypeOption with member variables.

    Declaration

    Swift

    public init(
        responseType: String,
        title: String,
        options: [DialogNodeOutputOptionsElement],
        description: String? = nil,
        preference: String? = nil,
        channels: [ResponseGenericChannel]? = nil
    )

    Parameters

    responseType

    The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.

    title

    An optional title to show before the response.

    options

    An array of objects describing the options from which the user can choose. You can include up to 20 options.

    description

    An optional description to show with the response.

    preference

    The preferred type of control to display, if supported by the channel.

    channels

    An array of objects specifying channels for which the response is intended.

    Return Value

    An initialized DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.