AbstractProtectCallback

open class AbstractProtectCallback : AbstractCallback, ContinueNodeAware, @unchecked Sendable

Abstract Protect Callback that provides the raw content of the Callback, and common methods for sub classes to access.

  • Reference to the continue node for accessing other callbacks

    Declaration

    Swift

    public weak var continueNode: ContinueNode?
  • Initializes a new instance of AbstractProtectCallback with the provided JSON input.

    Declaration

    Swift

    public override func initValue(name: String, value: Any)
  • initialize(with:) Asynchronous

    Initialize from JSON object

    Declaration

    Swift

    public override func initialize(with json: [String : Any]) async -> any Callback
  • Input the Client Error to the server

    Declaration

    Swift

    public func error(_ value: String)

    Parameters

    value

    Protect ErrorType

  • Input the Signal to the server

    Declaration

    Swift

    public func signal(_ value: String, error: String)

    Parameters

    value

    The JWS value

    error

    Error message if any