Click or drag to resize

MatchHeader Class

Basic match information.
Inheritance Hierarchy
SystemObject
  Sportradar.SDK.FeedProviders.LiveOdds.CommonEventHeader
    Sportradar.SDK.FeedProviders.LiveOdds.LiveOddsMatchHeader

Namespace: Sportradar.SDK.FeedProviders.LiveOdds.LiveOdds
Assembly: LiveOddsFeedProvider (in LiveOddsFeedProvider.dll) Version: 2.28.0.0
Syntax
C#
[SerializableAttribute]
public class MatchHeader : EventHeader

The MatchHeader type exposes the following members.

Constructors
 NameDescription
Public methodMatchHeaderInitializes a new instance of the MatchHeader class
Top
Properties
 NameDescription
Public propertyActive Set to false when a match is removed (in this case also see the Message for the reason for removal). Also set to false if the client has unregistered a match. The message element will include the text "unregistered" in such case.
(Inherited from EventHeader)
Public propertyAutoTraded Indicates if is match auto traded
Public propertyBalls Used by baseball and similar sports. Part of pitch count statistic. Denotes the number of fouls (bad throws) from the pitcher for current half-inning.
Public propertyBases Used by baseball and similar sports. Comma separated list which tells if a base is occupied or not.
Public propertyBatter Used by baseball and similar sports. Denotes which batter is currently active.
Public propertyBetStatus Current bet status
(Inherited from EventHeader)
Public propertyBetStopReason The reason why a betstop occurred.
Public propertyBooked The meta-message includes matches that are booked or included in the package that is purchased. By adding specifying includeavailable="true" in the meta request, or activating it through XML configuration ‘Include non booked matches in meta’, the meta response will also include matches that are available for booking but not booked yet. The match element in the meta-response will then also include this property specifying whether the match is already booked (true), or not booked yet (false).
Public propertyClearedScore Cleared score in bet clear and bet clear rollback situations.
Public propertyClockStopped Indicates that a clock has been stopped in the middle of the match for Basketball, Ice Hockey and Handball matches. This status will only be present if the corresponding XML configuration is activated.
Public propertyCorners Number of corners for the Home/Away team.
Public propertyCurrentCtTeam Current ct team
Public propertyCurrentEnd Current end in set
Public propertyDelivery Player of which team will deliver the next bowl or in cricket which ball delivery in the over it is
Public propertyDismissals Number of dismissals per team
Public propertyEarlyBetStatus Early bet status (if configured in XML LiveOdds config). This status is set to “started" once the score is changed and remains so until the match continues (re-kick off), which causes that “earlybetstatus" is set to “stopped". The bookmaker can now decide whether to receive new prices right after the score change or after the match continues (re-kick off). If one or both of the flags betstatus or earlybetstatus is set to started it can be treated as betstart, otherwise it is betstop.
Public propertyExpedite Expedite
Public propertyGameScore Provides the point score in the current Tennis game. The score is in the format 15:40. If one player has advantage the game score will be 50:40 or 40:50. This attribute is also used for the tiebreak score when the game is in a tiebreak.
Public propertyId Betradar id for the event
(Inherited from EventHeader)
Public propertyInnings Number of innings
Public propertyLegScore Used in darts Leg (game) score
Public propertyMatchTime Indicates the playing minute of the match. Only included for soccer, ice hockey and basketball matches when the match has status 1p, 2p, 1p_ot or 2p_ot in soccer and 1p, 2p, 3p and ot in ice hockey and 1q, 2q, 3q, 4q and ot for basket.
Public propertyMatchTimeExtended Extended match time (if configured in XML LiveOdds config). This will also show the injury time.
Public propertyMessage Optional textual message attached to the match (e.g. why a match has been removed, information that a client has unregistered from a match, etc.)
(Inherited from EventHeader)
Public propertyMsgnr Incremental message id that starts with 1 for every match. Only messages that changes the state of a match will include this property. Alive messages, meta-information and login response messages will not include this incremental id.
(Inherited from EventHeader)
Public propertyOuts Used by baseball and similar sports. Denotes the number of outs in current half-inning.
Public propertyOver Number of overs
Public propertyPenaltyRuns Number of penalty runs per team
Public propertyPosition Ball position will be sent as x yards to go till opponent’s end zone for the team in possession. Number in range [1,100]; e.g. own x will be sent as “100 – x" while opposite x will be sent as “x"
Public propertyPossession Which team has the ball.
Public propertyRedCards Number of red cards for the Home/Away team.
Public propertyRemainingBowls The remaining bowls of the teams
Public propertyRemainingReds Remaining red balls (used in snooker).
Public propertyRemainingTime Remaining time for basketball matches only (if this has been activated for your account). This will contain the remaining minutes and seconds in the format mm:ss (e.g. "38:10").
Public propertyRemainingTimeInPeriod Specifies the remaining time in this period (when this applies).
Public propertyScore Indicates the current score in the match. Before the match has started the value of the score attribute will be “-:-", afterwards it will be in the format “0:0".
Public propertyServer Indicates which player has the serve at the moment during a Tennis match. Possible values are “1" for player one and “2" for player two. This is optional as some Tennis matches might not have this.
Public propertySetScores For Tennis it contains the scores for all sets that have ended and the current running set. For Ice Hockey and Basketball it includes the period score for all finished periods. If "Show current period score during period" XML config setting is enabled, the score of the current period will be included also during the current period, not only after the period is over.
Public propertySourceId Client's own match id. It will be empty if we are missing your id for a particular match.
Public propertyStatus Event status
(Inherited from EventHeader)
Public propertyStatusId Gets the status identifier.
Public propertyStrikes Used by baseball and similar sports. Part of pitch count statistic. Denotes the number of fouls from the striker for current half-inning.
Public propertySuspend Number of suspensions.
Public propertyThrow Number of throws. (Snooker?)
Public propertyTieBreak Indicates if a Tennis match is in a tiebreak.
Public propertyTry Try number. A number in range [1,4], it's the current “down" until reaching the 10 yards if defined
Public propertyVisit Number of turns (used in snooker).
Public propertyYards Yards till first down. How many yards down in this drive (the drive is a series of offensive plays)
Public propertyYellowCards Number of yellow cards for the Home/Away team.
Public propertyYellowRedCards Number of yellow cards that resulted in red card for the Home/Away team.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Returns a string that represents the current object.
(Overrides EventHeaderToString)
Top
Example
active="1" betstatus="started" gamescore="0:0" matchid="935457" score="1:0" server="1" setscore1="6:3" setscore2="1:3" status="2set" tiebreak="false"
See Also