public class AliveEntity extends LiveOddsEntityBase implements Serializable
Betradar system sends AliveEntity 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 matches that Betradar system supplies live odds for at the given time. Every match element also contains betstatus information ("started" or "stopped").
Score information included with the match indicates the current score in the match while the msgnr indicates the number of the last message sent for this match.
SDK will stop all bets on all matches in case it hasn't received any alive messages in the last 20 seconds or if the connection to the Betradar system is lost. All bets are stopped until the connection with the Betradar system is stable again.
Match is appears in "alive" approximately 15 minutes before start and stays in "alive" 5 minutes after end (after operator closed the match).
Constructor and Description |
---|
AliveEntity()
For Serializable
|
AliveEntity(Map<String,String> additionalData)
Initializes a new instance of the
AliveEntity class. |
Modifier and Type | Method and Description |
---|---|
List<? extends EventHeaderEntity> |
getEventHeaders()
Gets the List of empty match elements to identify the matches that Betradar system
supplies live odds for at the given time (with betstatus and score information).
|
String |
toString()
Returns a string that represents the current object.
|
getMessages, getReplyNr, getReplyType, getServerType, getServerVersion, getStatus, getTimeOffset, getTimeStamp, getVirtualGameId, isOutOfBand, setOutOfBand
getAdditionalData, getEventId
public AliveEntity(Map<String,String> additionalData)
AliveEntity
class.additionalData
- attributes which are not defined on the used version of the sdk entitiespublic AliveEntity()
public List<? extends EventHeaderEntity> getEventHeaders()
public String toString()
Note : Can be used for diagnostics purposes.
toString
in class LiveOddsEntityBase
Copyright © 2013–2023. All rights reserved.