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, statsTwobookPriority, duration, eventId, getCreatedTime, matchId, partitionKeyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbookPriority, duration, eventId, getCreatedTime, matchId, partitionKeypublic 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 IBetEventStatestats in class B2EventStatepublic IParticipantStats statsOf(int idx)
statsOf in interface IBetEventStatestatsOf in class B2EventStateidx - index of the participant