public interface IBetEvent
extends jayeson.lib.feed.api.Attributable
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
|
default java.util.Collection<? extends IBetRecord> |
getRecords(java.util.List<java.lang.String> bookIdList,
LBType lbType)
Retrieve collection of records by a particular book id list and lay/back type
|
default java.util.Collection<? extends IBetRecord> |
getRecords(java.lang.String bookId)
Retrieve collection of records by a particular book id
|
default java.util.Collection<? extends IBetRecord> |
getRecords(java.lang.String bookId,
LBType lbType)
Retrieve collection of records by a particular book id and lay/back type
|
default java.util.Collection<? extends IBetRecord> |
getRecords(java.lang.String bookId,
OddType oddType)
Retrieve collection of records by a particular book id and odd type
|
default java.util.Collection<? extends IBetRecord> |
getRecords(java.lang.String bookId,
TimeType timeType)
Retrieve collection of records by a particular book id and time type
|
default boolean |
hasLBType(LBType lbType)
Check if there are lbType records in the event object.
|
default boolean |
hasOddType(OddType oddType)
Check if there are given odd type records in this event
|
default boolean |
hasRecord(java.lang.String source,
long id)
Check if there are given source and id records in this event
|
default boolean |
hasSportbook(java.lang.String bookId)
Indicates if this event contain records from given sportbook.
|
default boolean |
hasTimeType(TimeType timeType) |
java.lang.String |
id()
Retrieve event id
|
java.lang.String |
matchId()
Retrieve match ID of parent match
|
default IBetRecord |
record(java.lang.String source,
long id)
Retrieve a specific IBetRecord with the particular source name and id
|
java.util.Collection<? extends IBetRecord> |
records()
Retrieve collection of records
|
default java.util.Collection<? extends IBetRecord> |
records(TimeType t)
Retrieve collection of records by a particular time type object
|
java.lang.String id()
java.util.Collection<? extends IBetRecord> records()
default java.util.Collection<? extends IBetRecord> records(TimeType t)
t
- - time typeIBetEventState eventState()
java.util.Collection<? extends IBetEventState> eventStates()
java.lang.String matchId()
EventType eventType()
IBetEventState getEventState(java.lang.String sportsBook)
sportsBook
- Sportbook's namedefault java.util.Collection<? extends IBetRecord> getRecords(java.lang.String bookId)
bookId
- - sport book identifierdefault java.util.Collection<? extends IBetRecord> getRecords(java.lang.String bookId, TimeType timeType)
bookId
- - sport book identifiertimeType
- - time typedefault java.util.Collection<? extends IBetRecord> getRecords(java.lang.String bookId, OddType oddType)
bookId
- - sport book identifieroddType
- - odd typedefault java.util.Collection<? extends IBetRecord> getRecords(java.lang.String bookId, LBType lbType)
bookId
- - book idlbType
- - LAY or BACKdefault java.util.Collection<? extends IBetRecord> getRecords(java.util.List<java.lang.String> bookIdList, LBType lbType)
bookIdList
- - List of book idslbType
- - LAY or BACKdefault boolean hasSportbook(java.lang.String bookId)
bookId
- The sportbook code. Case sensitive. E:g IBC,CROWN,SIN88 etc.default boolean hasLBType(LBType lbType)
lbType
- LAY or BACKdefault boolean hasTimeType(TimeType timeType)
timeType
- represents the time that a record belongs todefault boolean hasOddType(OddType oddType)
oddType
- represents the odd that a record belongs todefault boolean hasRecord(java.lang.String source, long id)
source
- represents the source that a record belongs toid
- represents the unique identifier of a record belongs todefault IBetRecord record(java.lang.String source, long id)
source
- represents the source that a record belongs toid
- represents the unique identifier of a record belongs to