ChannelMessagepublic 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()
ChannelMessagegetTicker in interface ChannelMessagepublic ChannelType getChannelType()
ChannelMessagegetChannelType in interface ChannelMessagepublic StockQuote getStockQuote()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object