Class IdNameTuple
- Namespace
- Sportradar.LiveData.Sdk.FeedProviders.Common.Entities
- Assembly
- Sportradar.LiveData.Sdk.dll
Id and localized name tuple with optional unique id field.
[Serializable]
public class IdNameTuple
- Inheritance
-
IdNameTuple
- Inherited Members
Constructors
IdNameTuple(long, string, bool)
Initialize a new IdNameTuple instance.
public IdNameTuple(long id, string value, bool id_specified = true)
Parameters
IdNameTuple(long, string, long, bool, bool)
Initialize a new IdNameTuple instance.
public IdNameTuple(long id, string value, long unique_id, bool id_specified = true, bool unique_id_specified = true)
Parameters
idlongEntity id
valuestringEntity value
unique_idlongEntity unique id (i.e. team unique id)
id_specifiedboolWhether id is specified or not
unique_id_specifiedboolWhether unique id is specified or not
Properties
Id
Entity id
public long? Id { get; }
Property Value
- long?
Name
Localized entity name
public LocalizedString Name { get; }
Property Value
UniqueId
Specified the team unique id. The teams have two id's; one named id and another named uniqueid. The id is for that team in that tournament, and the uniqueid is for that team in all tournaments. Not all teams have the uniqueid attribute, so it should only be used to identify that two teams in different tournaments are the same.
public long? UniqueId { get; }
Property Value
- long?
Methods
ToString()
Convert to string representation.
public override string ToString()
Returns
- string
Proper string representation.