public class OCastCommandParams
Represents parameters for the data layer of a command.
Constructor and Description |
---|
OCastCommandParams(java.lang.String name)
Creates an instance of
class OCastCommandParams . |
Modifier and Type | Method and Description |
---|---|
OCastDataLayer<org.ocast.sdk.core.models.OCastCommandParams> |
build()
Builds an instance of
class OCastDataLayer from the command parameters and options. |
java.lang.String |
getName()
The name of the command.
|
OCastCommandParams |
options(org.json.JSONObject options)
Apply the specified options to the command.
|
public OCastCommandParams(@NotNull java.lang.String name)
Creates an instance of class OCastCommandParams
.
name
- The name of the command.class OCastCommandParams
@NotNull public OCastDataLayer<org.ocast.sdk.core.models.OCastCommandParams> build()
Builds an instance of class OCastDataLayer
from the command parameters and options.
class OCastDataLayer
@NotNull public OCastCommandParams options(@Nullable org.json.JSONObject options)
Apply the specified options to the command.
options
- The options to apply.this
.@NotNull public java.lang.String getName()
The name of the command.