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, statsTwo
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
public 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 IBetEventState
stats
in class B2EventState
public IParticipantStats statsOf(int idx)
statsOf
in interface IBetEventState
statsOf
in class B2EventState
idx
- index of the participant