java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.VenueCi

public class VenueCi extends Object
A venue representation used by caching components
  • Constructor Details

    • VenueCi

      public VenueCi(com.sportradar.uf.sportsapi.datamodel.SapiVenue venue, Locale locale)
      Initializes a new instance of the VenueCi class
      Parameters:
      venue - - SapiVenue containing information about the venue
      locale - - Locale specifying the language of the venue
    • VenueCi

      public VenueCi(ExportableVenueCi exportable)
  • Method Details

    • merge

      public void merge(com.sportradar.uf.sportsapi.datamodel.SapiVenue venue, Locale locale)
      Merges the information from the provided SapiVenue into the current instance
      Parameters:
      venue - - SapiVenue containing information about the venue
      locale - - Locale specifying the language of the venue
    • getName

      public String getName(Locale locale)
      Returns the name of the venue in the specified language
      Parameters:
      locale - - Locale specifying the language of the returned name
      Returns:
      - The name of the venue in the specified language if it exists. Null otherwise.
    • getCityName

      public String getCityName(Locale locale)
      Returns the city name of the venue in the specified language
      Parameters:
      locale - - Locale specifying the language of the returned name
      Returns:
      - The city name of the venue in the specified language if it exists. Null otherwise.
    • getCountryName

      public String getCountryName(Locale locale)
      Returns the country name of the venue in the specified language
      Parameters:
      locale - - Locale specifying the language of the returned name
      Returns:
      - The country name of the venue in the specified language if it exists. Null otherwise.
    • getCapacity

      public Integer getCapacity()
      Returns the capacity of the venue associated with current instance, or a null reference if the capacity is not specified
      Returns:
      - the capacity of the venue associated with current instance, or a null reference if the capacity is not specified
    • getCoordinates

      public String getCoordinates()
      Returns the map coordinates specifying the exact location of the venue represented by current instance
      Returns:
      - the map coordinates specifying the exact location of the venue represented by current instance
    • getCountryCode

      public String getCountryCode()
      Returns the associated country code
      Returns:
      the associated country code
    • getState

      public String getState()
      Returns state/province of the country
      Returns:
      state
    • getCourses

      public List<CourseCi> getCourses()
      Returns state/province of the country
      Returns:
      state
    • hasTranslationsFor

      public boolean hasTranslationsFor(List<Locale> locales)
    • export

      public ExportableVenueCi export()
    • getId

      public Urn getId()
      Returns the Urn of the represented sport entity
      Returns:
      - the Urn of the represented sport entity
    • equals

      public boolean equals(Object obj)
      Determines whether the specified object is equal to the current object
      Overrides:
      equals in class Object
      Parameters:
      obj - - the object to compare with the current object
      Returns:
      - true if the specified object is equal to the current object. otherwise, false
    • hashCode

      public int hashCode()
      Serves as the default hash function
      Overrides:
      hashCode in class Object
      Returns:
      - a hash code for the current object