public class Event<T> extends Object implements EventInterface<T>
| Constructor and Description |
|---|
Event(String typeId,
String deviceId,
String eventId,
String format,
MessageInterface<T> message) |
| Modifier and Type | Method and Description |
|---|---|
T |
getData() |
String |
getDeviceId()
Returns the device id
|
String |
getEventId()
Returns the name of the event
|
String |
getFormat() |
org.joda.time.DateTime |
getTimestamp() |
String |
getTypeId()
Returns the device type
|
public Event(String typeId, String deviceId, String eventId, String format, MessageInterface<T> message)
typeId - object of String which denotes event typedeviceId - object of String which denotes the event ideventId - object of String which denotes the eventformat - Format (encoding) of the eventmessage - Object implementing MessageInterfacepublic String getTypeId()
getTypeId in interface EventInterface<T>public String getDeviceId()
getDeviceId in interface EventInterface<T>public String getEventId()
getEventId in interface EventInterface<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.