public class RoomEventImpl extends Object implements RoomEvent
| Constructor and Description |
|---|
RoomEventImpl(Jitter jitter,
Room room,
org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJSON()
Gets the underlying JSON object.
|
String |
getAction()
Gets the action that the event describes.
|
Optional<Date> |
getEditTimestamp()
Gets the date when this event was edited.
|
String |
getHTML()
Gets the HTML representation of the event.
|
String |
getID()
Gets the event's ID.
|
Jitter |
getJitter()
Gets the providing
Jitter object. |
org.json.JSONObject |
getMetadata()
Gets the JSON object describing this event's metadata.
|
org.json.JSONObject |
getPayload()
Gets the JSON object describing this event's payload.
|
Room |
getRoom()
Gets the room in which this event occurred.
|
Date |
getSentTimestamp()
Gets the date when this event was sent.
|
String |
getService()
Gets the name of the service that called the event.
|
String |
getText()
Gets the text representation of the event.
|
Optional<User> |
getUser()
Gets the user that triggered the event.
|
int |
getVersion()
Gets this event's version.
|
public Jitter getJitter()
JitterEventJitter object.getJitter in interface JitterEventpublic Room getRoom()
RoomEventpublic org.json.JSONObject asJSON()
RoomEventpublic String getService()
RoomEventgetService in interface RoomEventpublic String getAction()
RoomEventpublic String getText()
RoomEventpublic String getHTML()
RoomEventpublic Date getSentTimestamp()
RoomEventgetSentTimestamp in interface RoomEventpublic Optional<Date> getEditTimestamp()
RoomEventgetEditTimestamp in interface RoomEventpublic Optional<User> getUser()
RoomEventpublic org.json.JSONObject getMetadata()
RoomEventgetMetadata in interface RoomEventpublic org.json.JSONObject getPayload()
RoomEventgetPayload in interface RoomEventpublic int getVersion()
RoomEventgetVersion in interface RoomEventCopyright © 2016. All rights reserved.