ChannelMessage
public class QuotesMessage extends java.lang.Object implements ChannelMessage
Constructor | Description |
---|---|
QuotesMessage(ChannelType cType,
java.lang.String ticker,
com.google.gson.JsonObject jsonObject) |
Instantiates a new quotes message.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
ChannelType |
getChannelType() |
Gets the channel type.
|
StockQuote |
getStockQuote() |
Gets the stock quote.
|
java.lang.String |
getTicker() |
Gets the ticker.
|
int |
hashCode() |
|
java.lang.String |
toString() |
public QuotesMessage(ChannelType cType, java.lang.String ticker, com.google.gson.JsonObject jsonObject)
cType
- the c typeticker
- the tickerjsonObject
- the json objectpublic java.lang.String getTicker()
ChannelMessage
getTicker
in interface ChannelMessage
public ChannelType getChannelType()
ChannelMessage
getChannelType
in interface ChannelMessage
public StockQuote getStockQuote()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object