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

public class DelayedInfoCi extends Object
Event delay info cache representation
  • Constructor Details

    • DelayedInfoCi

      public DelayedInfoCi(com.sportradar.uf.sportsapi.datamodel.SapiDelayedInfo delayedInfo, Locale locale)
      Initializes a new delayed info CI
      Parameters:
      delayedInfo - the data from which the CI will be built
      locale - the Locale in which the data is provided
    • DelayedInfoCi

      public DelayedInfoCi(ExportableDelayedInfoCi exportable)
  • Method Details

    • getId

      public int getId()
      Returns the delay info identifier
      Returns:
      the delay info identifier
    • getDescription

      public String getDescription(Locale locale)
      Returns the delay info description in the specified Locale
      Parameters:
      locale - the Locale in which the data should be provided
      Returns:
      the delay info description in the specified Locale
    • hasTranslationsFor

      public boolean hasTranslationsFor(List<Locale> locales)
      Check if the cache item contains the provided Locales
      Parameters:
      locales - the Locales which should be checked
      Returns:
      true if all the provided Locales are cached; otherwise false
    • merge

      public void merge(com.sportradar.uf.sportsapi.datamodel.SapiDelayedInfo delayedInfo, Locale locale)
      Merges the provided data in the associated cache item
      Parameters:
      delayedInfo - the data which should be merged
      locale - the Locale in which the data is provided
    • export

      public ExportableDelayedInfoCi export()