DialogNodeAction

public struct DialogNodeAction : Codable, Equatable

DialogNodeAction.

  • The type of action to invoke.

    See more

    Declaration

    Swift

    public enum TypeEnum : String
  • The name of the action.

    Declaration

    Swift

    public var name: String
  • The type of action to invoke.

    Declaration

    Swift

    public var type: String?
  • A map of key/value pairs to be provided to the action.

    Declaration

    Swift

    public var parameters: [String : JSON]?
  • The location in the dialog context where the result of the action is stored.

    Declaration

    Swift

    public var resultVariable: String
  • The name of the context variable that the client application will use to pass in credentials for the action.

    Declaration

    Swift

    public var credentials: String?
  • Initialize a DialogNodeAction with member variables.

    Declaration

    Swift

    public init(
        name: String,
        resultVariable: String,
        type: String? = nil,
        parameters: [String: JSON]? = nil,
        credentials: String? = nil
    )

    Parameters

    name

    The name of the action.

    resultVariable

    The location in the dialog context where the result of the action is stored.

    type

    The type of action to invoke.

    parameters

    A map of key/value pairs to be provided to the action.

    credentials

    The name of the context variable that the client application will use to pass in credentials for the action.

    Return Value

    An initialized DialogNodeAction.