public class SoccerEventState extends B2EventState
| Constructor and Description |
|---|
SoccerEventState(int duration,
PartitionKey key,
java.lang.String matchId,
java.lang.String eventId,
int hostScore,
int guestScore,
int hostCard,
int guestCard,
SoccerSegment segment,
int bookPriority) |
| Modifier and Type | Method and Description |
|---|---|
int |
guestCard()
Retrieve the number of red cards that the guest has obtained
|
int |
guestScore()
Retrieve the number of goals that the guest has scored
|
int |
hostCard()
Retrieve the number of red cards.
|
int |
hostScore()
Retrieve the number of goals that the host has scored
|
SoccerSegment |
segment()
Retrieve the event segment e.g FIRST_HALF / HALF_BREAK etc.
|
java.util.List<IParticipantStats> |
stats()
Retrieve 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 SoccerEventState(int duration,
PartitionKey key,
java.lang.String matchId,
java.lang.String eventId,
int hostScore,
int guestScore,
int hostCard,
int guestCard,
SoccerSegment segment,
int bookPriority)
duration - - 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 identifierhostScore - - The number of goals that the host has scoredguestScore - - The number of goals that the guest has scoredhostCard - - The number of red cards that the host has obtainedguestCard - - The number of red cards that the guest has obtainedsegment - - The event segment e.g FIRST_HALF / HALF_BREAK etc.bookPriority - - The priority of sportbook, the lower the betterpublic int hostScore()
public int guestScore()
public int hostCard()
public int guestCard()
public SoccerSegment 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