Class IdNameTuple
java.lang.Object
com.sportradar.livedata.sdk.feed.common.entities.IdNameTuple
- All Implemented Interfaces:
Serializable
Contains id and name (for example Tournament, Category, ...)
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFor SerializableIdNameTuple(long id, String value) Initialize a newIdNameTupleinstance.IdNameTuple(long id, String value, Long uniqueId) Initialize a newIdNameTupleinstance. -
Method Summary
-
Constructor Details
-
IdNameTuple
Initialize a newIdNameTupleinstance.- Parameters:
id- Entity idvalue- Entity value
-
IdNameTuple
Initialize a newIdNameTupleinstance.- Parameters:
id- Entity idvalue- Entity valueuniqueId- Entity unique id (i.e. team unique id)
-
IdNameTuple
protected IdNameTuple()For Serializable
-
-
Method Details
-
getId
Entity id- Returns:
- id
-
getName
Gets name- Returns:
- name
-
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
-