Constructor and Description |
---|
BetEvent(java.lang.String id,
java.util.Collection<? extends IBetRecord> records,
java.lang.String matchId,
EventType type,
java.util.Collection<? extends IBetEventState> states,
java.util.Map<java.lang.String,java.lang.String> meta) |
Modifier and Type | Method and Description |
---|---|
IBetEventState |
eventState()
Retrieve primary event state
|
java.util.Collection<? extends IBetEventState> |
eventStates()
Retrieve event state from all sportbook.
|
EventType |
eventType()
Retrieve sport specific event type
|
IBetEventState |
getEventState(java.lang.String sportsBook)
Retrieve IBetEventState basing on the name of sportbook
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta() |
java.lang.String |
id()
Retrieve event id
|
java.lang.String |
matchId()
Retrieve match ID of parent match
|
java.util.Map<java.lang.String,java.lang.String> |
meta() |
java.util.Collection<? extends IBetRecord> |
records()
Retrieve collection of records of the event object
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecords, getRecords, getRecords, getRecords, getRecords, hasLBType, hasOddType, hasRecord, hasSportbook, hasTimeType, record, records
public BetEvent(java.lang.String id, java.util.Collection<? extends IBetRecord> records, java.lang.String matchId, EventType type, java.util.Collection<? extends IBetEventState> states, java.util.Map<java.lang.String,java.lang.String> meta)
public java.lang.String id()
public java.lang.String matchId()
public EventType eventType()
public java.util.Map<java.lang.String,java.lang.String> getMeta()
public java.util.Collection<? extends IBetRecord> records()
public java.util.Map<java.lang.String,java.lang.String> meta()
meta
in interface jayeson.lib.feed.api.Attributable
public IBetEventState getEventState(java.lang.String sportsBook)
getEventState
in interface IBetEvent
sportsBook
- Sportbook's namepublic IBetEventState eventState()
eventState
in interface IBetEvent
public java.util.Collection<? extends IBetEventState> eventStates()
eventStates
in interface IBetEvent