Click or drag to resize

BetClear Class

Indicates that a situation occurred during the match so that a bet can be decided. Time which is set to (Timestamp - Time) seconds indicates the time at which the event happened. The message also includes the match element indicating the match id and the cleared score with an Odds element indicating the odds type, and this again with each EventOddsField and the status of the outcomes.

Some bet types, like Asian handicap and Asian total, can also include void factor for each EventOddsField element. Void factor can either be 1 or 0.5 indicating that the whole or half the bet is voided and should be refunded to the customer. When the void factor is set to 0.5 the outcome attribute will indicate if the other half is won or lost.

The id attribute in the Odds element corresponds to the odds elements in the previously sent out odds change messages. Evaluation of bet outcomes is responsibility of the client.

Inheritance Hierarchy

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

The BetClear 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 propertyEventHeader Core info about the event for this event
(Inherited from SingleHeaderEvent)
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 propertyOdds Odds relevant to the event
(Inherited from SingleHeaderWithOddsEvent)
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 SingleHeaderWithOddsEventToString)
Top
Remarks
Possible combinations of outcome and void factor:
  • outcome="0" and no void factor: Lose entire bet
  • outcome="1" and no void factor: Win entire bet
  • outcome="0" and void factor="1": Refund entire bet
  • outcome="1" and void factor="0.5": Refund half bet and win other half
  • outcome="0" and void factor="0.5": Refund half bet and lose other half
See Also