EntityAssignment class

Static methods for working with EntityAssignment objects.

Constructors

EntityAssignment(Partial<EntityAssignmentConfiguration>)

Initializes a new instance of the EntityAssignment class.

Properties

alternative

Alternative assignment.

alternatives

Gets the alternative entity assignments.

event

Event name to surface

expectedProperties

The expected properties when assignment was made.

isExpected

Value indicating whether this entity was in DialogPath.ExpectedProperties.

operation

Operation to assign entity to property.

property

Name of property being assigned.

raisedCount

The number of times event has been raised.

value

Recognized entity value.

Methods

addAlternatives(EntityAssignment[])

Add alternatives to a single assignment.

toString()

Print an assignment as a string.

Constructor Details

EntityAssignment(Partial<EntityAssignmentConfiguration>)

Initializes a new instance of the EntityAssignment class.

new EntityAssignment(assignment: Partial<EntityAssignmentConfiguration>)

Parameters

assignment

Partial<EntityAssignmentConfiguration>

The entity assignment properties to set for this instance.

Property Details

alternative

Alternative assignment.

alternative: EntityAssignment

Property Value

alternatives

Gets the alternative entity assignments.

EntityAssignment[] alternatives

Property Value

The alternative entity assigment.

event

Event name to surface

event: string

Property Value

string

expectedProperties

The expected properties when assignment was made.

expectedProperties: string[]

Property Value

string[]

isExpected

Value indicating whether this entity was in DialogPath.ExpectedProperties.

isExpected: boolean

Property Value

boolean

operation

Operation to assign entity to property.

operation: string

Property Value

string

property

Name of property being assigned.

property: string

Property Value

string

raisedCount

The number of times event has been raised.

raisedCount: number

Property Value

number

value

Recognized entity value.

value: Partial<EntityInfo>

Property Value

Partial<EntityInfo>

Method Details

addAlternatives(EntityAssignment[])

Add alternatives to a single assignment.

function addAlternatives(alternatives: EntityAssignment[])

Parameters

alternatives

EntityAssignment[]

Alternatives to add.

toString()

Print an assignment as a string.

function toString(): string

Returns

string

A string that represents the current object.