UpdateMessage
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public OrderEvent getEvent()
public java.lang.Double getPrice()
public java.time.LocalDateTime getTimestamp()
public Order getOrder()
public MessageType getMessageType()
UpdateMessage
getMessageType
in interface UpdateMessage