Class MatchHeaderEntity
- java.lang.Object
-
- com.sportradar.livedata.sdk.feed.livescout.entities.MatchHeaderEntity
-
- All Implemented Interfaces:
Serializable
public class MatchHeaderEntity extends Object implements Serializable
Provides basic match information- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MatchHeaderEntity()
For Serializable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAwayState()
MatchBetStatus
getBetStatus()
Whether market is open or closed.Boolean
getConnectionStatus()
Whether scout is currently connected or not.Integer
getCoverageStatusId()
Returns the id of the coverage status for the associated matchCoverage
getCoveredFrom()
Whether the match is covered from TV or venue.Integer
getDevice()
DeviceInteger
getDistance()
Distance between teams in km.LatencyLevel
getExpectedLatencyLevel()
Return latency enum value.String
getExtMatchId()
Integer
getExtraInfo()
Integer specifying special information for the match.ScoutFeedType
getFeedType()
Whether this is a full, delta or deltaupdate message.Team
getFirstServe()
Which player / team has first serve of match (tennis).Team
getFirstServeGoldenSet()
Which player / team has first serve of golden setTeam
getFirstServeTieBreak()
Which player / team has first serve in tie-break (tennis).String
getHomeState()
long
getMatchId()
Match Id.String
getMatchTime()
Match time, mm:ss (e.g.Integer
getNumberOfSets()
Number of sets in match (tennis).PaginationEntity
getPagination()
Too big feed can be split if such configuration is activated in LiveData.String
getRegion()
Integer
getSetLimit()
Gets number of points needed to win a setSex
getSex()
Gender (sex) of the player / team.String
getSourceId()
Customer matchid.Integer
getSportId()
Returns the sport idInteger
getSt1Id()
Betradar super team id for team 1.Integer
getSt2Id()
Betradar super team id for team 2.org.joda.time.DateTime
getStart()
Official match start time, as a timestamp in UTC.Long
getSTime()
IdNameTuple
getTeam1()
Betradar team 1 (home team).String
getTeam1Abbreviation()
Gets team 1 abbreviationString
getTeam1Division()
Gets team 1 divisionIdNameTuple
getTeam1Neutral()
Returns the team 1 (home team) neutral nameIdNameTuple
getTeam2()
Betradar team 2 (away team).String
getTeam2Abbreviation()
Gets team 2 abbreviationString
getTeam2Division()
Gets team 2 divisionIdNameTuple
getTeam2Neutral()
Returns the team 2 (away team) neutral nameLong
getTeamMatchId()
TeamsReversed
getTeamsReversed()
Shows whether order not confirmed or reversedInteger
getVar()
String
getVbpClassification()
String
getVenue()
Team
getWonJumpBall()
Which team won jump ball at the start of the match.Boolean
isActive()
Is match active?Boolean
isBooked()
Whether the match is booked by the client.Boolean
isCancelled()
Boolean
isDeepCoverage()
Whether this is a deep coverage match.boolean
isRts()
Whether this is a rts match.Boolean
isTeamMatch()
Boolean
isTieBreakLastSet()
Last set has tie break.Boolean
isTimeRunning()
Whether time/clock is running/active or not.
-
-
-
Method Detail
-
getBetStatus
public MatchBetStatus getBetStatus()
Whether market is open or closed.- Returns:
- bet status
-
getConnectionStatus
public Boolean getConnectionStatus()
Whether scout is currently connected or not.- Returns:
- connection status
-
getCoveredFrom
public Coverage getCoveredFrom()
Whether the match is covered from TV or venue.- Returns:
- coverage
-
getDevice
public Integer getDevice()
Device- Returns:
- device
-
getDistance
public Integer getDistance()
Distance between teams in km.- Returns:
- distance between teams in km
-
getTeamsReversed
public TeamsReversed getTeamsReversed()
Shows whether order not confirmed or reversed- Returns:
- teams reversed
-
getExtraInfo
public Integer getExtraInfo()
Integer specifying special information for the match. Can be one of the following:- 1 – Soccer match played 2*40 minutes (+2*10 minutes extra time)
- 2 – Tennis no advantage rule, super tie break to 10 points
- 3 – Tennis no advantage rule, super tie break to 7 points
- 4 – Tennis no advantage rule, no super tie break
- 5 – Tennis advantage rule, super tie break to 10 points
- 6 – Tennis advantage rule, super tie break to 7 points
- 7 – Basketball 12 minute periods
- 8 – Volleyball best of 3 sets
- 9 - Soccer match played 2*35 minutes (+2* 5 minutes extra time)
- 10 - Soccer match played 2*30 minutes (+2* 5 minutes extra time)
- 11 - Soccer match played 2*25 minutes (+2* 5 minutes extra time)
- 12 - Ice hockey 10 minutes extra time periods
- 13 - Ice hockey 20 minutes extra time periods
- 14 – Futsal match played 2*25 minutes (+2* 5 minutes extra time)
- Returns:
- extra info
-
getFeedType
public ScoutFeedType getFeedType()
Whether this is a full, delta or deltaupdate message.- Returns:
- feed type
-
getFirstServe
public Team getFirstServe()
Which player / team has first serve of match (tennis).- Returns:
- player / team that has first serve of match
-
getFirstServeGoldenSet
public Team getFirstServeGoldenSet()
Which player / team has first serve of golden set- Returns:
- player / team that has first serve of golden set
-
getFirstServeTieBreak
public Team getFirstServeTieBreak()
Which player / team has first serve in tie-break (tennis).- Returns:
- player / team that has first serve in tie-break
-
getMatchId
public long getMatchId()
Match Id.- Returns:
- match id
-
getMatchTime
public String getMatchTime()
Match time, mm:ss (e.g. 40:00 or 00:00).- Returns:
- match time
-
getNumberOfSets
public Integer getNumberOfSets()
Number of sets in match (tennis).- Returns:
- number of sets
-
getSetLimit
public Integer getSetLimit()
Gets number of points needed to win a set- Returns:
- number of points needed to win a set
-
getSex
public Sex getSex()
Gender (sex) of the player / team.- Returns:
- player/team gender
-
getSourceId
public String getSourceId()
Customer matchid. Included if set up and if available for this match. Contact Sportradar in order to include this in the scout feed- Returns:
- customer match id
-
getCoverageStatusId
public Integer getCoverageStatusId()
Returns the id of the coverage status for the associated match- Returns:
- - if available, the id of the coverage status for the associated match; otherwise null
-
getSt1Id
public Integer getSt1Id()
Betradar super team id for team 1.Note: Super team is the parent a certain team derives from. New sponsor might completely change the name of the team no matter it is actually the same thing.
- Returns:
- team 1 super id
-
getSt2Id
public Integer getSt2Id()
Betradar super team id for team 2.Note: Super team is the parent a certain team derives from. New sponsor might completely change the name of the team no matter it is actually the same thing.
- Returns:
- team 2 super id
-
getStart
public org.joda.time.DateTime getStart()
Official match start time, as a timestamp in UTC.- Returns:
- match start time
-
getTeam1
public IdNameTuple getTeam1()
Betradar team 1 (home team).- Returns:
- home team
-
getTeam1Abbreviation
public String getTeam1Abbreviation()
Gets team 1 abbreviation- Returns:
- team 1 abbreviation
-
getTeam1Division
public String getTeam1Division()
Gets team 1 division- Returns:
- team 1 division
-
getTeam1Neutral
public IdNameTuple getTeam1Neutral()
Returns the team 1 (home team) neutral name- Returns:
- the team 1 (home team) neutral name
-
getTeam2
public IdNameTuple getTeam2()
Betradar team 2 (away team).- Returns:
- away team
-
getTeam2Abbreviation
public String getTeam2Abbreviation()
Gets team 2 abbreviation- Returns:
- team 2 abbreviation
-
getTeam2Division
public String getTeam2Division()
Gets team 2 division- Returns:
- team 2 division
-
getTeam2Neutral
public IdNameTuple getTeam2Neutral()
Returns the team 2 (away team) neutral name- Returns:
- the team 2 (away team) neutral name
-
getWonJumpBall
public Team getWonJumpBall()
Which team won jump ball at the start of the match.- Returns:
- team which won the jump ball
-
getSportId
public Integer getSportId()
Returns the sport id- Returns:
- the sport id
-
isActive
public Boolean isActive()
Is match active?- Returns:
- true if this match is active
-
isBooked
public Boolean isBooked()
Whether the match is booked by the client.- Returns:
- true if this match is booked
-
isDeepCoverage
public Boolean isDeepCoverage()
Whether this is a deep coverage match.- Returns:
- true if this match has deep coverage
-
isRts
public boolean isRts()
Whether this is a rts match.- Returns:
- true if this is a rts match
-
isTieBreakLastSet
public Boolean isTieBreakLastSet()
Last set has tie break.- Returns:
- true if last set has tie break
-
isTimeRunning
public Boolean isTimeRunning()
Whether time/clock is running/active or not.- Returns:
- true if time is running
-
getExtMatchId
public String getExtMatchId()
-
getVar
public Integer getVar()
-
isTeamMatch
public Boolean isTeamMatch()
-
getTeamMatchId
public Long getTeamMatchId()
-
isCancelled
public Boolean isCancelled()
-
getSTime
public Long getSTime()
-
getVbpClassification
public String getVbpClassification()
-
getHomeState
public String getHomeState()
-
getAwayState
public String getAwayState()
-
getVenue
public String getVenue()
-
getRegion
public String getRegion()
-
getPagination
public PaginationEntity getPagination()
Too big feed can be split if such configuration is activated in LiveData.- Returns:
PaginationEntity
-
getExpectedLatencyLevel
public LatencyLevel getExpectedLatencyLevel()
Return latency enum value. If not available, returnLatencyLevel#INVALID
with value and name taken from feed.LatencyLevel#INVALID
holding only latest unexpected value and name.- Returns:
LatencyLevel
-
-