Interface TournamentCi

All Superinterfaces:
CacheItem, SportEventCi

public interface TournamentCi extends SportEventCi
Defines methods used to access cached tournament data
  • Method Details

    • getCategoryId

      Urn getCategoryId()
      Returns the Urn specifying the id of the parent category
      Returns:
      the Urn specifying the id of the parent category
    • getCurrentSeason

      SeasonCi getCurrentSeason(List<Locale> locales)
      Returns a SeasonCi representing the current season of the tournament
      Parameters:
      locales - a List of Locale specifying the languages to which the returned instance should be translated
      Returns:
      a SeasonCi representing the current season of the tournament
    • getSeasonCoverage

      SeasonCoverageCi getSeasonCoverage()
      Returns a SeasonCoverageCi containing information about the tournament coverage
      Returns:
      a SeasonCoverageCi containing information about the tournament coverage
    • getSeason

      SeasonCi getSeason(List<Locale> locales)
      Returns the associated endpoint season
      Parameters:
      locales - the locales in which the data should be available
      Returns:
      the associated season cache item
    • getCompetitorIds

      List<Urn> getCompetitorIds(List<Locale> locales)
      Returns a List of the associated tournament competitor ids
      Parameters:
      locales - a List of Locale specifying the languages to which the returned instance should be translated
      Returns:
      - if available a List of the associated tournament competitor ids; otherwise null
    • getGroups

      List<GroupCi> getGroups(List<Locale> locales)
      Returns a list of groups related to the current instance
      Parameters:
      locales - a List of Locale specifying the languages to which the returned instance should be translated
      Returns:
      a list of groups related to the current instance
    • getRound

      RoundCi getRound(List<Locale> locales)
      Returns the rounds related to the current instance
      Parameters:
      locales - a List of Locale specifying the languages to which the returned instance should be translated
      Returns:
      the rounds related to the current instance
    • getTournamentCoverage

      TournamentCoverageCi getTournamentCoverage()
      Returns the current tournament coverage information
      Returns:
      a TournamentCoverageCi instance describing the current coverage indication
    • getSeasonIds

      List<Urn> getSeasonIds()
      Returns a list of associated season identifiers
      Returns:
      a list of associated season identifiers
    • getCompetitorsReferences

      Map<Urn,ReferenceIdCi> getCompetitorsReferences()
      Returns list of Urn of Competitor and associated Reference for this sport event
      Returns:
      list of Urn of Competitor and associated Reference for this sport event
    • isExhibitionGames

      Boolean isExhibitionGames()
      Returns the Boolean specifying if the tournament is exhibition game
      Returns:
      if available, the Boolean specifying if the tournament is exhibition game
    • requestMissingSummaryData

      void requestMissingSummaryData(List<Locale> requiredLocales, boolean forceFetch, RequestOptions requestOptions)
      Request Summary API Call and store its result to the cache
      Parameters:
      requiredLocales - the List of Locales in which the data should be provided
      forceFetch - if set to true, the data will be fetched from the API even if it is already cached
      requestOptions - the RequestOptions used to specify the execution path