java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.SportSummaryImpl
All Implemented Interfaces:
SportSummary
Direct Known Subclasses:
SportImpl

public class SportSummaryImpl extends Object implements SportSummary
Represents a basic sport summary
  • Method Details

    • getId

      public Urn getId()
      Returns an Urn uniquely identifying the sport represented by the current instance
      Specified by:
      getId in interface SportSummary
      Returns:
      - an Urn uniquely identifying the sport represented by the current instance
    • getName

      public String getName(Locale l)
      Returns the name of the current SportSummary instance in the specified language
      Specified by:
      getName in interface SportSummary
      Parameters:
      l - - a Locale specifying the language in which the name should be translated
      Returns:
      - the name of the current SportSummary instance in the specified language
    • getNames

      public Map<Locale,String> getNames()
      Returns an unmodifiable Map containing translated sport names
      Specified by:
      getNames in interface SportSummary
      Returns:
      - an unmodifiable Map containing translated sport names
    • toString

      public String toString()
      Returns a String describing the current SportSummary instance
      Overrides:
      toString in class Object
      Returns:
      - a String describing the current SportSummary instance