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:
  • Constructor Details

    • IdNameTuple

      public IdNameTuple(long id, String value)
      Initialize a new IdNameTuple instance.
      Parameters:
      id - Entity id
      value - Entity value
    • IdNameTuple

      public IdNameTuple(long id, String value, Long uniqueId)
      Initialize a new IdNameTuple instance.
      Parameters:
      id - Entity id
      value - Entity value
      uniqueId - Entity unique id (i.e. team unique id)
    • IdNameTuple

      protected IdNameTuple()
      For Serializable
  • Method Details

    • 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