public class Command<T> extends Object implements MessageInterface<T>
| Constructor and Description |
|---|
Command(String command,
String format,
MessageInterface<T> message)
Note that this class does not have a default constructor
This class has only accessors and no mutators and later on might be made final |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandId()
Returns the name of the command
|
T |
getData() |
String |
getFormat() |
org.joda.time.DateTime |
getTimestamp() |
public Command(String command, String format, MessageInterface<T> message)
command - Actual command in the form of String passedformat - Format is a String which can contain values such as "json"message - Object implementing MessageInterfacepublic String getCommandId()
public String getFormat()
public T getData()
getData in interface MessageInterface<T>public org.joda.time.DateTime getTimestamp()
getTimestamp in interface MessageInterface<T>Copyright © 2019. All rights reserved.