Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandHeader

Data type for the command header

Hierarchy

  • CommandHeader

Index

Constructors

constructor

  • Create a new CommandHeader instance

    Parameters

    • service: number

      the service identifier

    • cid: ConversationId

      the conversation ID

    Returns CommandHeader

Properties

cid

The conversation ID

service

service: number

The service identifier

Methods

createErrorHeader

  • Create a error header from this command header

    Returns CommandHeader

    the command header that can be used for an error response

createResponseHeader

  • Create a response header from this command header

    Returns CommandHeader

    the command header that can be used for a response

toString

  • toString(): string
  • Convert object to string

    Returns string

    a string representation of the CommandHeader object

Static createRequestHeader

  • Create a new CommandHeader instance

    Parameters

    • service: number

      the service identifier

    • cid: ConversationId

      the conversation ID

    Returns CommandHeader

    the new command header