Class ScoutEventEntity
java.lang.Object
com.sportradar.livedata.sdk.feed.livescout.entities.ScoutEventEntity
- All Implemented Interfaces:
Serializable
Contains information about an event
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets number of assistsIdentifies whether event was automatically generated or not.Awayplayers: List of away player IDs which are currently on court.Represents the type of ball event.Gets ball numbergetBalls()Get number of ballsGets ball spottingGets baron killsGets base infoGets the angle of the ball, relative from the ground, as the ball leaves the batGets the direction of the ball as it leaves the bat (-45 = left field bounds, 45 = right field bounds, 0 = straight forward)Gets the speed at which the ball leaves the bat, mphGets the batting averagesGets the behindsGets break scoregetCloud()intGets the conversion typeGets corrected from, used with score correction eventGets corrected to, used with score correction eventprotected IntegerGets number of deathsGets deniesGets dismissals in inningsGets double killsGets dragon killsGets early betstart typeEnd scoreGet number of errorsGets number of errors awayGets number of errors homeGets experienceInteger value, meaning of this attribute depends on event type: 30 (score): 0 or -1 = not specified, 1 = penalty, 2 = own goal, 3 = header 1019 (cancel goal): 0 or -1 = not specified, 1 = off side, 2 = foul, 3 = incorrect entry 1013 (match status): match status enumeration 1025 (tennis full score): tennis point type – 0=standard, 1=ace, 2=double fault opponent 158 (injury): Player still injured – 1=yes, 0=no 165 (attendance): Attendance 1039 (manual time adjustment): Number of seconds adjusted.Gets extra info for baseballGets extra information for basketball matchExtra info for bowls gameGets extra information for cricket matchGets extra info for CS:GOExtra info for dart gameExtra info for football gameGets extra info handballExtra info ice hockeyGets kabaddi extra infoGets extra info for "MOBA" matchesGets snooker extra infoExtra info for soccer gameGets tennis extra infoGets volleyball extra infoGets water polo extra infoIndicates that current updates are the ultimate ones, no further updates are expected for any of attributesIs first base loadedGet first base playerFoultypedescriptor: Description of the foul.Foultypequalifier: Additional classification of the foul type.Gets frame numberGets frame scoreFreeKickReason: Description of the free kick.In tennis, which game number in the set.In tennis, the game score.getGoals()Gets the goalsorg.joda.time.DateTimeUNIX timestamp indicating when the event actually happened.protected IntegerGets the number of alive away team's heroesGets the number of alive home team's heroesGets hero idGets hero nameGets the number of hits for away teamGets the number of hits for home teamHomeplayers: List of home player IDs which are currently on court.Get home runs away.Get home runs home.longgetId()Unique event id.getInfo()Text description of event.Gets inhibitor killsGet current inning halfGets inning scoresGets item namegetKills()Gets number of killsGets kills awayGets kills homeGets number of last hitsUsed in darts Leg (game) scoregetLevel()Gets levelGets map nameGets map numberGets map scoreIn tennis, the match score.Gets the match statusMatch time, mm:ss (e.g.Get highest break in the current frame.Get highest break in the current match.Gets net worthGet next batter.getOuts()Get number of outsGets penta killsPeriod number of match.Gets period scoreGets pitch countGets pitching substitutionGets how fast the ball was pitched in MPH numeric valuesGets the type of how was the ball pitchedSportradar player id for player 1 connected to this event.Sportradar player id for player 1 connected to this event.Sportradar player id for player 3 connected to this event.Sportradar player id for player 4 connected to this event.Some events send playerid, while others send player1, player2, etc.Objects stores player statics fields that are coming with PLAYER_MATCH_STATS(1714) eventGets the point in game numberGet points remaining on the table.Points until snooker is needed to win the frameGets the position player pitchingHighest possible break in the current situationgetPosX()Horizontal position on pitch, posx being a number from 0 to 100.getPosY()Vertical position on pitch, posy being a number from 0 to 100.Gets quadra killsgetReds()Get number of Reds remaining on the tableRefstime containing the millisecond timestamp of the referenced event on event type DELETED_EVENT_ALERT(1044).Remaining time in period, mm:ssGets round numbergetRuns()Get number of runsGets the number of runs for away teamGets the number of runs for home teamGets runs in inningsGet scorer not confirmed.Scoretypequalifier: Additional score type qualifier.Is second base loadedGet second base playerSecond score typeWho will serve next (in table-tennis).org.joda.time.DateTimeServer time of event, time stamp in UTC.In tennis, which set number in the match.In tennis, the set score.shotdistance - description: Distance of the shot - unit: in feetgetSide()Which side had an event - home, away or none.getSpin()Get spin.getSpot()information whether a shot/goal was from inside/outside the box 0 - outside the box 1 - inside the box -1 - unknownGet number of strikeGet stroke type.Objects stores team statics fields that are coming with TEAM_MATCH_STATS(1743) eventIs first base loadedGet third base playerID of player who got the ball.intGets the touchdown typeGets tower killsgetTrack()The TrackEntity object contains x, y, and z parameters if they exist.Gets triple killsintEach event type has an id (e.g.getUuId()Gets weapon idGets weapon name
-
Constructor Details
-
ScoutEventEntity
protected ScoutEventEntity()For Serializable
-
-
Method Details
-
getMapNumber
Gets map number- Returns:
- map number
-
getMapScore
Gets map score- Returns:
- map score
-
getRoundNumber
Gets round number- Returns:
- round number
-
getAutomatic
Identifies whether event was automatically generated or not.Note : Probably not useful.
- Returns:
- flag about automatic generation
-
getBallNumber
Gets ball number- Returns:
- ball number
-
getBalls
Get number of balls- Returns:
- number of balls
-
getBaseInfo
Gets base info- Returns:
- base info
-
getPointsUntilSnookerNeeded
Points until snooker is needed to win the frame- Returns:
- points util snooker will be needed
-
getBreakScore
Gets break scoreNote: Used in Snooker
- Returns:
- break score
-
getCorrectedFrom
Gets corrected from, used with score correction event- Returns:
- corrected from
-
getCorrectedTo
Gets corrected to, used with score correction event- Returns:
- corrected to
-
getDismissalsInInnings
Gets dismissals in innings- Returns:
- dismissals in innings
-
getEndScore
End score- Returns:
- end score
-
getErrors
Get number of errors- Returns:
- number of errors
-
getSpot
information whether a shot/goal was from inside/outside the box 0 - outside the box 1 - inside the box -1 - unknown- Returns:
- according xsd - string value. Should it be parsed to int?
-
getExtraInfo
Integer value, meaning of this attribute depends on event type:- 30 (score): 0 or -1 = not specified, 1 = penalty, 2 = own goal, 3 = header
- 1019 (cancel goal): 0 or -1 = not specified, 1 = off side, 2 = foul, 3 = incorrect entry
- 1013 (match status): match status enumeration
- 1025 (tennis full score): tennis point type – 0=standard, 1=ace, 2=double fault opponent
- 158 (injury): Player still injured – 1=yes, 0=no 165 (attendance): Attendance
- 1039 (manual time adjustment): Number of seconds adjusted. Can be both a positive and a negative integer
- 1044 (event deleted): Id of event that was deleted
- 1037 (basketball points): Number of points scored – 1, 2 or 3
- 1038 (basketball points missed): Point attempt missed – 1, 2 or 3 (points)
- 1046 (volleyball full score): volleyball point type – 0=standard, 1=ace, 2=service error
- 1056 (number of free throws): Number of free throws
- 1036 (time start stop): 1 = time is running, 0 = time is stopped
- 43 (suspensions): Number of minutes player is suspended for
- 90 (injury time): Number of minutes injury time added
- 1082 (corner markets): 1 = safe to accept bets, 0 = not safe
- 1083 (booking markets): 1 = safe to accept bets, 0 = not safe
- 1002 (penalty shootout): -1=penalty not taken, 1=penalty scored, 0=penalty missed
- 1060 (direct free kick): -1 = not taken, 0 = miss, 1 = score
- 1102 (coverage status): 0 - match covered, 1 - coverage abandoned (used when abandoning coverage after a match has started), 2 - match will not be covered (used when we are unable to cover a match that we were supposed to cover)
- Returns:
- extra info
-
getExtraInfoBaseball
Gets extra info for baseball- Returns:
- extra info for baseball
-
getExtraInfoBasketball
Gets extra information for basketball match- Returns:
- extra information for basketball match
-
getExtraInfoBowls
Extra info for bowls game- Returns:
- Bowls extra info
-
getExtraInfoCricket
Gets extra information for cricket match- Returns:
- extra information for cricket match
-
getExtraInfoCsGo
Gets extra info for CS:GO- Returns:
- extra info for CS:GO
-
getExtraInfoMoba
Gets extra info for "MOBA" matches- Returns:
- extra info for "MOBA" matches
-
getExtraInfoDarts
Extra info for dart game- Returns:
- Dart extra info
-
getExtraInfoFootball
Extra info for football game- Returns:
- Football extra info
-
getExtraInfoSoccer
Extra info for soccer game- Returns:
- Soccer extra info
-
getExtraInfoHandball
Gets extra info handball- Returns:
- extra info handball
-
getExtraInfoIceHockey
Extra info ice hockey- Returns:
- extra info ice hockey
-
getExtraInfoSnooker
Gets snooker extra infoNote: Used in Snooker
- Returns:
- Snooker extra info
-
getExtraInfoVolleyball
Gets volleyball extra info- Returns:
- Volleyball extra info
-
getExtraInfoKabaddi
Gets kabaddi extra info- Returns:
- Kabaddi extra info
-
getExtraInfoWaterPolo
Gets water polo extra info- Returns:
- Water polo extra info
-
getExtraInfoTennis
Gets tennis extra info- Returns:
- tennis extra info
-
getFrameNumber
Gets frame numberNote: Used in Snooker
- Returns:
- frame number
-
getFrameScore
Gets frame scoreNote: Used in Snooker
- Returns:
- frame score
-
getGameNumber
In tennis, which game number in the set.- Returns:
- game number
-
getGameScore
In tennis, the game score.- Returns:
- game score
-
getId
public long getId()Unique event id.- Returns:
- id
-
getInfo
Text description of event.- Returns:
- info
-
getInningHalf
Get current inning half- Returns:
- inning half
-
getLegScore
Used in darts Leg (game) score- Returns:
- log score
-
getMatchScore
In tennis, the match score.- Returns:
- match score
-
getMatchTime
Match time, mm:ss (e.g. 40:00 or 00:00).- Returns:
- match time
-
getOuts
Get number of outs- Returns:
- number of outs
-
getPeriodNumber
Period number of match.- Returns:
- period number
-
getPeriodScore
Gets period score- Returns:
- period score
-
getPitchCount
Gets pitch count- Returns:
- pitch count
-
getBallEventType
Represents the type of ball event. If the specified value does not match any constant in theBallEventTypeenum, it will returnBallEventType.UNKNOWNwith the given value.- Returns:
BallEventType
-
getPlayerId
Some events send playerid, while others send player1, player2, etc. These formats won't change due to client dependencies.- Returns:
- player id
-
getPlayer1Id
Sportradar player id for player 1 connected to this event. The meaning of this attribute depends on event type:- 30 (goal): Goal scorer
- 50, 40, 45 (red, yellow, yellow/red card): Who got card
- 60 (substitution): Outgoing player
- 154 (corner): Who took corner
- 161 (penalty awarded): Who caused penalty – offender
- 155, 156 (shot on/off target): Who shot
- 153 (off side): Who was off side
- 158 (injury): Who was injured
- Returns:
- player 1 id
-
getPlayer2Id
Sportradar player id for player 1 connected to this event. The meaning of this attribute depends on event type:- 60 (substitution): Outgoing player
- 161 (penalty awarded): Who caused penalty – offender
- Returns:
- player 2 id
-
getPlayer3Id
Sportradar player id for player 3 connected to this event. The meaning of this attribute depends on event type:- 30 (goal): player3 = Second assisting player
- Returns:
- player 3 id
-
getPlayer4Id
Sportradar player id for player 4 connected to this event. The meaning of this attribute depends on event type:- 30 (goal): player3 = Second assisting player
- Returns:
- player 4 id
-
getTippedTo
ID of player who got the ball. Only if present.- Returns:
- ID of player
-
getPosX
Horizontal position on pitch, posx being a number from 0 to 100. The reference point 0 is at home teams goal.- Returns:
- position x
-
getPosY
Vertical position on pitch, posy being a number from 0 to 100. The reference point 0 is on top of pitch when home teams goal is on the left hand side.- Returns:
- position y
-
getTrack
The TrackEntity object contains x, y, and z parameters if they exist. It will return null if all three parameters are null.- Returns:
- track object
-
getRemainingTimeInPeriod
Remaining time in period, mm:ss- Returns:
- remaining time in period
-
getRuns
Get number of runs- Returns:
- number of runs
-
getRunsInInnings
Gets runs in innings- Returns:
- runs in innings
-
getSecondScoreType
Second score type- Returns:
- second score type
-
getScoreTypeQualifier
Scoretypequalifier: Additional score type qualifier. One event can have more than one scoretypequalifier. Enabled by LD XML config ID 46. Can have multiple values (for example 1,2,5). Possible values: 1 = 2nd chance 2 = Fast break 3 = From turnover 4 = Defensive goal tending 5 = Points in the paint- Returns:
Stringof types
-
getHappenedAt
public org.joda.time.DateTime getHappenedAt()UNIX timestamp indicating when the event actually happened. Available only if the event had to be added after the fact.- Returns:
DateTimeof happenedat.
-
getRefsTime
Refstime containing the millisecond timestamp of the referenced event on event type DELETED_EVENT_ALERT(1044).- Returns:
- time of deleted event
-
getShotDistance
shotdistance - description: Distance of the shot - unit: in feet- Returns:
Doubleof shotdistance.
-
getShotProjectedGoalRate
-
getShotRatingCategory
-
getShotSpeed
-
getShotType
-
getPossibleBreak
Highest possible break in the current situation- Returns:
Integerpossible break.
-
getServer
Who will serve next (in table-tennis).- Returns:
- serving team
-
getServerTime
public org.joda.time.DateTime getServerTime()Server time of event, time stamp in UTC.- Returns:
- server time
-
getSetNumber
In tennis, which set number in the match.- Returns:
- set number
-
getSetScore
In tennis, the set score.- Returns:
- set score
-
getSide
Which side had an event - home, away or none.- Returns:
- side
-
getStrikes
Get number of strike- Returns:
- number of strikes
-
getTypeId
public int getTypeId()Each event type has an id (e.g. yellow card 40, event deleted 1044, early bet status 1091, etc.). See LiveScout documentation to see which event types are supported for each sport. New event types can be offered in the future.- Returns:
- typeId
-
getAssists
Gets number of assists- Returns:
- number of assists
-
getDeaths
Gets number of deaths- Returns:
- number of deaths
-
getErrorsAway
Gets number of errors away- Returns:
- number of errors away
-
getErrorsHome
Gets number of errors home- Returns:
- number of errors home
-
getExperience
Gets experience- Returns:
- experience
-
getFirstBaseLoaded
Is first base loaded- Returns:
- first base status
-
getHeroesAliveAway
Gets the number of alive away team's heroes- Returns:
- number of alive away team's heroes
-
getHeroesAliveHome
Gets the number of alive home team's heroes- Returns:
- number of alive home team's heroes
-
getHitsAway
Gets the number of hits for away team- Returns:
- number of hits for away team
-
getHitsHome
Gets the number of hits for home team- Returns:
- number of hits for home team
-
getInningsScore
Gets inning scores- Returns:
- inning scores
-
getKills
Gets number of kills- Returns:
- number of kills
-
getLastHits
Gets number of last hits- Returns:
- number of last hits
-
getLevel
Gets level- Returns:
- level
-
getNetWorth
Gets net worth- Returns:
- net worth
-
getPitchingSubstitution
Gets pitching substitution- Returns:
- pitching substitution
-
getRunsAway
Gets the number of runs for away team- Returns:
- number of runs for away team
-
getRunsHome
Gets the number of runs for home team- Returns:
- number of runs for home team
-
getSecondBaseLoaded
Is second base loaded- Returns:
- first base status
-
getThirdBaseLoaded
Is first base loaded- Returns:
- first base status
-
getFirstBasePlayer
Get first base player- Returns:
- first base player
-
getSecondBasePlayer
Get second base player- Returns:
- second base player
-
getThirdBasePlayer
Get third base player- Returns:
- third base player
-
getWeaponId
Gets weapon id- Returns:
- weapon id
-
getWeaponName
Gets weapon name- Returns:
- weapon name
-
getBallSpotting
Gets ball spotting- Returns:
- ball spotting
-
getDenies
Gets denies- Returns:
- get denies
-
getEarlyBetstartType
Gets early betstart type- Returns:
- early betstart type
-
getHeroId
Gets hero id- Returns:
- hero id
-
getHeroName
Gets hero name- Returns:
- hero name
-
getKillsAway
Gets kills away- Returns:
- kills away
-
getKillsHome
Gets kills home- Returns:
- kills home
-
getDragonkills
Gets dragon kills- Returns:
- dragon kills
-
getBaronkills
Gets baron kills- Returns:
- baron kills
-
getInhibitorkills
Gets inhibitor kills- Returns:
- inhibitor kills
-
getTowerkills
Gets tower kills- Returns:
- tower kills
-
getDoublekills
Gets double kills- Returns:
- double kills
-
getTriplekills
Gets triple kills- Returns:
- triple kills
-
getQuadrakills
Gets quadra kills- Returns:
- quadra kills
-
getPentakills
Gets penta kills- Returns:
- penta kills
-
getMapName
Gets map name- Returns:
- map name
-
getItemName
Gets item name- Returns:
- item name
-
getTouchdownType
public int getTouchdownType()Gets the touchdown type- Returns:
- touchdown type
-
getConversionType
public int getConversionType()Gets the conversion type- Returns:
- conversion type
-
getGoals
Gets the goals- Returns:
- the goals
-
getBehinds
Gets the behinds- Returns:
- the behinds
-
getMatchStatus
Gets the match status- Returns:
- the match status
-
getUuId
-
getPitchType
Gets the type of how was the ball pitched- Returns:
- the type of the pitch
-
getPitchSpeed
Gets how fast the ball was pitched in MPH numeric values- Returns:
- the pitch speed
-
getBattingAverages
Gets the batting averages- Returns:
- the batting averages
-
getPositionPlayerPitching
Gets the position player pitching- Returns:
- the position player pitching
-
getBatBallSpeed
Gets the speed at which the ball leaves the bat, mph- Returns:
- the speed at which the ball leaves the bat, mph
-
getBatBallAngle
Gets the angle of the ball, relative from the ground, as the ball leaves the bat- Returns:
- the angle of the ball, relative from the ground, as the ball leaves the bat
-
getBatBallDirection
Gets the direction of the ball as it leaves the bat (-45 = left field bounds, 45 = right field bounds, 0 = straight forward)- Returns:
- the direction of the ball as it leaves the bat
-
getStructure
-
getMonsterType
-
getDragonType
-
getWardsPlaced
-
getChampionDamage
-
getRefUuId
-
getRoundScore
-
getKickedBy
-
getSnappedBy
-
getReceivedBy
-
getMuffedBy
-
getDownedBy
-
getCaughtBy
-
getTackledBy
-
getTouchBackAt
-
getCloud
-
getHumidity
-
getWindChill
-
getWindDirection
-
getWindSpeed
-
getTemperature
-
getSpottedAt
-
getDirection
-
getPushedBy
-
getTotalYardsGained
-
getIntendedReceiver
-
getThrownTo
-
getDefensedBy
-
getBlockedBy
-
getYardLine
-
getPassedBy
-
getRushedBy
-
getRushSpeed
-
getInterceptedBy
-
getTurfType
-
getStadiumType
-
getSackedBy
-
getSafetyBy
-
getFumbledBy
-
getRecoveredBy
-
getCausedBy
-
getPenaltyDistance
-
getPenaltyReason
-
getPenaltyNoPlay
-
getPlacedAt
-
getInjuryPlayer
-
getInjuryReturn
-
getDrivePlayInfo
-
getHomePlayerStatsDef
-
getAwayPlayerStatsDef
-
getHomePlayerStatsPass
-
getAwayPlayerStatsPass
-
getHomePlayerStatsRush
-
getAwayPlayerStatsRush
-
getHomePlayerStats
-
getAwayPlayerStats
-
getHomePlayerStatsRec
-
getAwayPlayerStatsRec
-
getPuntDistance
-
getDamage
-
getHealthRemaining
-
getPointsRemaining
Get points remaining on the table.- Returns:
- points remaining
-
getReds
Get number of Reds remaining on the table- Returns:
- reds
-
getRanOutOfBoundsAt
-
getDriveInfoStatus
-
getFieldGoalDistance
-
getHomeTimeOnIce
-
getAwayTimeOnIce
-
getAttackingPlayers
-
getPlayerStatistics
Objects stores player statics fields that are coming with PLAYER_MATCH_STATS(1714) event- Returns:
- team statics object
-
getHomeTimeOnCourt
-
getAwayTimeOnCourt
-
getHomePlayers
Homeplayers: List of home player IDs which are currently on court. Format: "PID;PID;PID" (list of players ids split by semicolon)- Returns:
Stringof players ids
-
getAwayPlayers
Awayplayers: List of away player IDs which are currently on court. Format: "PID;PID;PID" (list of players ids split by semicolon)- Returns:
Stringof players ids
-
getAtBatNumber
-
getTotalPitchCount
-
getAtBatPitchNumber
-
getBatBallDistance
-
getBatBallX
-
getBatBallY
-
getFieldingPlayers
-
getPreliminaryMatchStatistics
-
getActualMatchStatistics
-
getTeamStatistics
Objects stores team statics fields that are coming with TEAM_MATCH_STATS(1743) event- Returns:
- team statics object
-
getFreeKickReason
FreeKickReason: Description of the free kick. Possible values: 0 = foul 1 = handball 2 = other- Returns:
Integervalue of freeKickReason
-
getMaxBreakFrame
Get highest break in the current frame.- Returns:
- max break frame
-
getHomeRunsHome
Get home runs home.- Returns:
- home runs home
-
getMaxBreakMatch
Get highest break in the current match.- Returns:
- max break match
-
getHomeRunsAway
Get home runs away.- Returns:
- home runs away
-
getNextBatter
Get next batter.- Returns:
- next batter
-
getStrokeType
Get stroke type.- Returns:
- stroke type
-
getSpin
Get spin.- Returns:
- spin
-
getScorerNotConfirmed
Get scorer not confirmed. Null is value not exists.- Returns:
- true if scorer not confirmed
-
getFoulTypeDescriptor
Foultypedescriptor: Description of the foul. Possible values: 1 = charge 2 = off the ball 3 = take 4 = double 5 = shooting 6 = clear path 7 = loose ball 8 = blocking 9 = player control 10 = shooting block 11 = elbow 12 = punching 13 = flagrant type 1 14 = flagrant type 2 15 = away from play 16 = inbound 17 = non-unsportsmanlike 18 = rim hanging 19 = delay 20 = taunting 21 = indirect 22 = excess timeout 23 = too many players 24 = defensive 3 second 25 = flopping 26 = bench- Returns:
Integervalue of foultypedescriptor
-
getFoulTypeQualifier
Foultypequalifier: Additional classification of the foul type. One event can have more than one foultypequalifier. Possible values: 1 = 1 free throw 2 = 2 free throw 3 = 3 free throw 4 = in penalty 5 = team- Returns:
Stringof types
-
getStatistics
-
getOnDeck
-
getInHole
-
getNumberOfShots
-
getPointOutcome
-
getSituation
-
getErrorType
-
getShotSequence
-
getPrimaryShotType
-
getSecondaryShotType
-
getFinalConfidence
Indicates that current updates are the ultimate ones, no further updates are expected for any of attributes- Returns:
Boolean
-
getPointInGameNumber
Gets the point in game number- Returns:
- point in game number
-
getLastStroke
-
getSupervisorAction
-