public class BasketballEventState extends B2EventState
Constructor and Description |
---|
BasketballEventState(IParticipantStats statsOne,
IParticipantStats statsTwo,
int duration,
PartitionKey key,
java.lang.String matchId,
java.lang.String eventId,
BasketballSegment segment,
boolean isTimeout,
int bookPriority) |
Modifier and Type | Method and Description |
---|---|
int |
getGuestHalfScore(int segmentNum) |
int |
getGuestQuarterScore(int quarterNum) |
int |
getGuestTotalScore() |
int |
getHostHalfScore(int segmentNum) |
int |
getHostQuarterScore(int quarterNum) |
int |
getHostTotalScore() |
int |
getMinutes()
Retrieve minutes elasped in current segment.
|
int |
getSeconds()
Retrieve seconds elapsed in current segment.
|
boolean |
isTimeout()
Retrieve indicator to show if the match is timeout.
|
BasketballSegment |
segment()
Retrive the current match segment.
|
java.util.List<IParticipantStats> |
stats()
The default ordered list of participants' statistics
|
IParticipantStats |
statsOf(int idx)
Get the statistics of a particular participant
|
statsOne, statsTwo
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
public BasketballEventState(IParticipantStats statsOne, IParticipantStats statsTwo, int duration, PartitionKey key, java.lang.String matchId, java.lang.String eventId, BasketballSegment segment, boolean isTimeout, int bookPriority)
statsOne
- - The statistics of participant onestatsTwo
- - The statistics of participant twoduration
- - The soccer event duration, how long has the soccer event startedkey
- - to differentiate a event/eventstate from different sportbooks, sport types and odd typesmatchId
- - Match identifiereventId
- - Event identifiersegment
- - Indicates the current match segment. One of QUARTER_1, QUARTER_2, QUARTER_3, QUARTER_4 or OVERTIMEisTimeout
- - Indicates if the match is in timeoutbookPriority
- - The priority of sportbook, the lower the betterpublic boolean isTimeout()
public int getMinutes()
public int getSeconds()
public int getHostQuarterScore(int quarterNum)
public int getGuestQuarterScore(int quarterNum)
public int getHostHalfScore(int segmentNum)
public int getGuestHalfScore(int segmentNum)
public int getHostTotalScore()
public int getGuestTotalScore()
public BasketballSegment segment()
public java.util.List<IParticipantStats> stats()
stats
in interface IBetEventState
stats
in class B2EventState
public IParticipantStats statsOf(int idx)
statsOf
in interface IBetEventState
statsOf
in class B2EventState
idx
- index of the participant