Class IdNameTuple
- java.lang.Object
-
- com.sportradar.livedata.sdk.feed.common.entities.IdNameTuple
-
- All Implemented Interfaces:
Serializable
public class IdNameTuple extends Object implements Serializable
Contains id and name (for example Tournament, Category, ...)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdNameTuple()
For SerializableIdNameTuple(long id, String value)
Initialize a newIdNameTuple
instance.IdNameTuple(long id, String value, Long uniqueId)
Initialize a newIdNameTuple
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getId()
Entity idLocalizedString
getName()
Gets nameLong
getUniqueId()
Specified the team unique id.
-
-
-
Constructor Detail
-
IdNameTuple
public IdNameTuple(long id, String value)
Initialize a newIdNameTuple
instance.- Parameters:
id
- Entity idvalue
- Entity value
-
IdNameTuple
public IdNameTuple(long id, String value, Long uniqueId)
Initialize a newIdNameTuple
instance.- Parameters:
id
- Entity idvalue
- Entity valueuniqueId
- Entity unique id (i.e. team unique id)
-
IdNameTuple
protected IdNameTuple()
For Serializable
-
-
Method Detail
-
getId
public Long getId()
Entity id- Returns:
- id
-
getName
public LocalizedString getName()
Gets name- Returns:
- name
-
getUniqueId
public Long getUniqueId()
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.
- Returns:
- unique id
-
-