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

public class ManagerCi extends Object
A cache representation of a competitor manager
  • Constructor Details

    • ManagerCi

      public ManagerCi(com.sportradar.uf.sportsapi.datamodel.SapiManager manager, Locale locale)
      Initializes as new ManagerCi instance
      Parameters:
      manager - the API schema object from which the instance will be created
      locale - the Locale in which the API object is translated
    • ManagerCi

      public ManagerCi(ExportableManagerCi exportable)
  • Method Details

    • getId

      public Urn getId()
      Returns the manager identifier
      Returns:
      the manager identifier
    • getName

      public String getName(Locale locale)
      Returns the translated manager name
      Parameters:
      locale - the locale in which the name should be provided
      Returns:
      the translated manager name
    • getNames

      public Map<Locale,String> getNames()
    • getNationality

      public String getNationality(Locale locale)
      Returns the translated nationality
      Parameters:
      locale - the locale in which the nationality should be provided
      Returns:
      the translated nationality
    • getCountryCode

      public String getCountryCode()
      Returns the country code
      Returns:
      the country code
    • merge

      public void merge(com.sportradar.uf.sportsapi.datamodel.SapiManager manager, Locale locale)
      Merges the provided data into the current instance
      Parameters:
      manager - the API object to be merged
      locale - the locale in which the provided object is translated
    • hasTranslationsFor

      public boolean hasTranslationsFor(List<Locale> locales)
      Checks if the provided locales are internally cached
      Parameters:
      locales - the locales to be checked
      Returns:
      true if the locales are cached, otherwise false
    • export

      public ExportableManagerCi export()