Class BetValue
- Namespace
- Sportradar.LiveData.Sdk.Common.Types
- Assembly
- Sportradar.LiveData.Sdk.dll
Value associated with a specified BetTypeKey. This includes localized bet type name (e.g. en="hc", fi="Taaoitus") and localized outcomes/odds fields (e.g. "1", "x", "2" in different languages)
[Serializable]
public class BetValue : ICloneable
- Inheritance
-
BetValue
- Implements
- Inherited Members
Constructors
BetValue(string, LocalizedString, BetTypeKey)
Initializes a new instance of the BetValue class
public BetValue(string type, LocalizedString name, BetTypeKey key)
Parameters
typestringOdds type name
nameLocalizedStringOdds internationalized name
keyBetTypeKeyOdds type key
Properties
Key
Corresponding key.
public BetTypeKey Key { get; }
Property Value
Name
Localized bet type name
public LocalizedString Name { get; }
Property Value
Outcomes
Collection of localized outcomes / odds fields
public IDictionary<string, BetOutcome> Outcomes { get; }
Property Value
Type
Odds type name (international, e.g. "3w", "to", "hc" );
public string Type { get; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Remarks
Can be used for diagnostics purposes.