Table of Contents

Class BetTypeKey

Namespace
Sportradar.LiveData.Sdk.Common.Types
Assembly
Sportradar.LiveData.Sdk.dll

Bet type key (e.g. "3w" = 2)

[Serializable]
public class BetTypeKey : IEquatable<BetTypeKey>
Inheritance
BetTypeKey
Implements
Inherited Members

Constructors

BetTypeKey(long)

Initializes a new instance of the BetTypeKey class

public BetTypeKey(long odds_type_id)

Parameters

odds_type_id long

Bet type id

BetTypeKey(long, long?)

Initializes a new instance of the BetTypeKey class

public BetTypeKey(long odds_type_id, long? odds_sub_type)

Parameters

odds_type_id long

Bet type id

odds_sub_type long?

Optional bet subtype id

Properties

BetSubType

Optional bet subtype id (e.g. type="ft3w" typeid="6" subtype="13" freetext="Next goal")

public long? BetSubType { get; }

Property Value

long?

BetTypeId

Unique bet type id (e.g. type="3w", typeid="2")

public long BetTypeId { get; }

Property Value

long

Methods

Equals(BetTypeKey)

Check for equality.

public bool Equals(BetTypeKey other)

Parameters

other BetTypeKey

other object

Returns

bool

true when equal; false else

Equals(object)

Check for equality.

public override bool Equals(object obj)

Parameters

obj object

other object

Returns

bool

true when equal; false else

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

Hash for current object

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.