Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AddCommand

Base command that adds some element to the graph.

Hierarchy

Index

Constructors

constructor

  • new AddCommand(id: Guid, requestId: Guid, sessionId: Guid, type: CommandType, elementId: Guid, elementType: string, elementProperties: Dictionary<any>): AddCommand
  • Parameters

    • id: Guid

      The RFC4122 v4 compliant ID of this command.

    • requestId: Guid

      The RFC4122 v4 compliant ID of the request that created this command.

    • sessionId: Guid

      The RFC4122 v4 compliant ID of the session that created this command.

    • type: CommandType
    • elementId: Guid

      The RFC4122 v4 compliant ID of the new element.

    • elementType: string

      The type of the new element.

    • elementProperties: Dictionary<any>

      The properties of the new element.

    Returns AddCommand

Properties

elementId

elementId: Guid

The RFC4122 v4 compliant ID of the new element.

elementProperties

elementProperties: Dictionary<any>

The properties of the new element.

elementType

elementType: string

The type of the new element.

id

id: Guid

The RFC4122 v4 compliant ID of this command.

requestId

requestId: Guid

The RFC4122 v4 compliant ID of the request that created this command.

sessionId

sessionId: Guid

The RFC4122 v4 compliant ID of the session that created this command.

type

The type of this command.

Methods

toJson

  • toJson(): string

Generated using TypeDoc