EntityAssignment class
Static methods for working with EntityAssignment
objects.
Constructors
Entity |
Initializes a new instance of the EntityAssignment class. |
Properties
alternative | Alternative assignment. |
alternatives | Gets the alternative entity assignments. |
event | Event name to surface |
expected |
The expected properties when assignment was made. |
is |
Value indicating whether this entity was in |
operation | Operation to assign entity to property. |
property | Name of property being assigned. |
raised |
The number of times event has been raised. |
value | Recognized entity value. |
Methods
add |
Add alternatives to a single assignment. |
to |
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
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
Method Details
addAlternatives(EntityAssignment[])
Add alternatives to a single assignment.
function addAlternatives(alternatives: EntityAssignment[])
Parameters
- alternatives
Alternatives to add.
toString()
Print an assignment as a string.
function toString(): string
Returns
string
A string that represents the current object.