public class Command<T> extends Object implements CommandInterface<T>
| Constructor and Description |
|---|
Command(String typeId,
String deviceId,
String commandId,
String format,
MessageInterface<T> message)
Note that this class does not have a default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandId()
Returns the name of the command
|
T |
getData() |
String |
getDeviceId()
Returns the device Id
|
String |
getFormat() |
org.joda.time.DateTime |
getTimestamp() |
String |
getTypeId()
Returns the device type
|
public Command(String typeId, String deviceId, String commandId, String format, MessageInterface<T> message)
typeId - Object of String which denotes command typedeviceId - Object of String which denotes command idcommandId - Object of String which denotes actual command typeformat - Object of String which denotes command format, say jsonmessage - Object implementing MessageInterfacepublic String getTypeId()
getTypeId in interface CommandInterface<T>public String getDeviceId()
getDeviceId in interface CommandInterface<T>public String getCommandId()
getCommandId in interface CommandInterface<T>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.