CommandValue<T> Class
- java.
lang. Object - com.
microsoft. bot. schema. CommandValue<T>
- com.
Type Parameters
- T
The type of the CommandValue.
public class CommandValue<T>
The value field of a CommandActivity contains metadata related to a command.An optional extensible data payload may be included if defined by the command activity name.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| CommandValue() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getCommandId()
Gets the id of the command. |
| T |
getData()
Gets the data field containing optional parameters specific to this command activity, as defined by the name. |
| void |
setCommandId(String withCommandId)
Sets the id of the command. |
| void |
setData(T withData)
Sets the data field containing optional parameters specific to this command activity, as defined by the name. |
Methods inherited from java.lang.Object
Constructor Details
CommandValue
public CommandValue()
Method Details
getCommandId
public String getCommandId()
Gets the id of the command.
Returns:
getData
public T getData()
Gets the data field containing optional parameters specific to this command activity, as defined by the name. The value of the data field is a complex type.
Returns:
setCommandId
public void setCommandId(String withCommandId)
Sets the id of the command.
Parameters:
setData
public void setData(T withData)
Sets the data field containing optional parameters specific to this command activity, as defined by the name. The value of the data field is a complex type.
Parameters: