UpdateMessagepublic class OrderUpdateMessage extends java.lang.Object implements UpdateMessage
| Constructor | Description |
|---|---|
OrderUpdateMessage(com.google.gson.JsonObject data) |
Instantiates a new order update message.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
OrderEvent |
getEvent() |
Gets the event.
|
MessageType |
getMessageType() |
Gets the message type.
|
Order |
getOrder() |
Gets the order.
|
java.lang.Double |
getPrice() |
Gets the price.
|
java.time.LocalDateTime |
getTimestamp() |
Gets the timestamp.
|
int |
hashCode() |
|
java.lang.String |
toString() |
public OrderUpdateMessage(com.google.gson.JsonObject data)
data - the datapublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic OrderEvent getEvent()
public java.lang.Double getPrice()
public java.time.LocalDateTime getTimestamp()
public Order getOrder()
public MessageType getMessageType()
UpdateMessagegetMessageType in interface UpdateMessage