CommandValue<T> Class

  • java.lang.Object
    • com.microsoft.bot.schema.CommandValue<T>

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

CommandValue

public CommandValue()

Method Details

getCommandId

public String getCommandId()

Gets the id of the command.

Returns:

the CommandId value as a String.

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:

the Data value as a T.

setCommandId

public void setCommandId(String withCommandId)

Sets the id of the command.

Parameters:

withCommandId - The CommandId value.

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:

withData - The Data value.

Applies to