Click or drag to resize

Alive Class

Betradar system sends Alive message every 10 seconds so that a bookmaker client can be sure that it has a working connection to the Betradar system at all times.

This message contains status, timestamp in UTC, and empty Match elements to identify the events that Betradar system supplies live odds for at the given time. Every event element also contains betstatus information ("started" or "stopped").

Score information included with the event indicates the current score in the event while the msgnr indicates the number of the last message sent for this event.

Inheritance Hierarchy

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

The Alive type exposes the following members.

Properties
 NameDescription
Public propertyAdditionalData Contains any additional XML attributes found while parsing XML feed messages that are not supported with the current version of the data contracts. These are represented as an XML attribute name-value tuples.
(Inherited from EntityBase)
Public propertyEventHeaders List of empty event elements to identify the events that Betradar system supplies live odds for at the given time (with betstatus and score information).
Public propertyIsOutOfBand Is the message out-of-band by purpose i.e., explicitly requested by user? True when yes; false else (usually).
(Inherited from OddsEntityBase)
Public propertyMessages Additional textual information attached to the message.
(Inherited from OddsEntityBase)
Public propertyMsgnr To make sure that client system receives all messages from the Betradar system, all messages sent out have an incremental id. It starts with 1 for every event. Only messages that change the state of a event include this attribute. Alive, meta-information and login response messages do not include it.
(Inherited from OddsEntityBase)
Public propertyReplyNr Reply number matching the request number, thus enabling us to pair request and response messages properly.
(Inherited from OddsEntityBase)
Public propertyReplyType Message reply type (e.g. Current, Error, Register)
(Inherited from OddsEntityBase)
Public propertyServerType Live odds feed server type (e.g. LiveOdds, BetPal, ...)
(Inherited from OddsEntityBase)
Public propertyServerVersion XML feeds server version
(Inherited from OddsEntityBase)
Public propertyStatus Live Odds status specifying the actual message type (e.g. current, clearbet, change, score, cards, etc.)
(Inherited from OddsEntityBase)
Public propertyTime Time in seconds. For "betstart", "betstop", "betclear" it tells when the situation occurred in seconds before Timestamp. Also used to indicate time for the original bet clearing in case of "betrollback".
(Inherited from OddsEntityBase)
Public propertyTimestamp Time from server in UTC.
(Inherited from OddsEntityBase)
Public propertyVirtualGameId Virtual game id.
(Inherited from OddsEntityBase)
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 OddsEntityBaseToString)
Top
Remarks
SDK will stop all bets on all events in case it hasn't received any alive messages in timespan defined in settings or if the connection to the Betradar system is lost. All bets are stopped until the connection with the Betradar system is stable again. Event appears in "alive" approximately 15 minutes before start and stays in "alive" 5 minutes after end (after operator closed the event).
See Also