Header

public struct Header : Codable

A structure that contains header fields for the event.

  • The namespace of event.

    Declaration

    Swift

    public let namespace: String
  • The name of event.

    Declaration

    Swift

    public let name: String
  • The version of capability interface that .

    Declaration

    Swift

    public let version: String
  • The identifier for the request that generated by client.

    Declaration

    Swift

    public let dialogRequestId: String
  • The unique identifier for the event.

    Declaration

    Swift

    public let messageId: String
  • The referrer dialog request identifier.

    Declaration

    Swift

    public let referrerDialogRequestId: String?
  • Creates an instance of an Header.

    Declaration

    Swift

    public init(namespace: String, name: String, version: String, dialogRequestId: String, messageId: String, referrerDialogRequestId: String? = nil)

    Parameters

    namespace

    The namespace of event.

    name

    The name of event.

    version

    The version of capability interface.

    dialogRequestId

    The identifier for the request that generated by client.

    messageId

    The identifier for the request that generated by client.

    referrerDialogRequestId

    The referrer dialog request identifier.

Upstream.Event.Header

  • The type of event.

    Declaration

    Swift

    public var type: String { get }