public class DialogSlot extends Object
| Constructor and Description |
|---|
DialogSlot()
Constructs a dialog slot, sets name, value and confirmation status as
null. |
DialogSlot(Slot requestSlot)
Creates a slot object for a dialog response from a given
Slot object from the
Intent object within an IntentRequest. |
DialogSlot(String name,
String value)
Constructs a dialog slot from name and value, sets confirmation status as
null. |
DialogSlot(String name,
String value,
ConfirmationStatus confirmationStatus)
Constructs a dialog slot from name, value and confirmation status.
|
| Modifier and Type | Method and Description |
|---|---|
ConfirmationStatus |
getConfirmationStatus()
Returns the confirmation status for dialog slot.
|
String |
getName()
Returns the name of dialog slot.
|
String |
getValue()
Returns the value of dialog slot or
none if undefined. |
void |
setConfirmationStatus(ConfirmationStatus confirmationStatus)
Sets the confirmation status for dialog slot.
|
void |
setName(String name)
Sets the name for dialog slot.
|
void |
setValue(String value)
Sets the value for dialog slot.
|
public DialogSlot(String name, String value, ConfirmationStatus confirmationStatus)
name - the name of dialog slotvalue - the value of dialog slot or null if undefinedconfirmationStatus - the confirmation status for dialog slot, or ConfirmationStatus.NONE if
unknownConfirmationStatuspublic DialogSlot(String name, String value)
null.name - the name of dialog slotvalue - the value of dialog slot or null if undefinedpublic DialogSlot()
null.public DialogSlot(Slot requestSlot)
Slot object from the
Intent object within an IntentRequest.requestSlot - the slot givenpublic String getName()
public void setName(String name)
name - the name of dialog slotpublic String getValue()
none if undefined.none if undefinedpublic void setValue(String value)
value - the value for dialog slot.public ConfirmationStatus getConfirmationStatus()
ConfirmationStatuspublic void setConfirmationStatus(ConfirmationStatus confirmationStatus)
confirmationStatus - the confirmation status for dialog slotConfirmationStatusCopyright © 2017. All rights reserved.