public interface SportDataProvider
| Modifier and Type | Method and Description |
|---|---|
List<ExportableCi> |
cacheExport(EnumSet<CacheType> cacheType)
Exports current items in the cache
|
void |
cacheImport(List<ExportableCi> items)
Imports provided items into caches
|
Integer |
deleteSportEventsFromCache(Date before)
Deletes the sport events from cache which are scheduled before specified date
|
List<SportEvent> |
getActiveTournaments()
Returns all the active tournaments
(the returned data is translated in the default locale configured with the
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage) |
List<SportEvent> |
getActiveTournaments(Locale locale)
Returns all the active tournaments
(the returned data is translated in the specified
Locale)
(possible types: BasicTournament, Tournament, Stage) |
List<SportEvent> |
getActiveTournaments(String sportName)
Returns all the active tournaments of a specific sport
(the returned data is translated in the default locale configured with the
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage) |
List<SportEvent> |
getActiveTournaments(String sportName,
Locale locale)
Returns all the active tournaments of a specific sport
(the returned data is translated in the specified
Locale)
(possible types: BasicTournament, Tournament, Stage) |
List<SportEvent> |
getAvailableTournaments(Urn sportId)
Returns all the available tournaments for a specific sport
(the returned data is translated in the default locale configured with the
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage) |
List<SportEvent> |
getAvailableTournaments(Urn sportId,
Locale locale)
Returns all the available tournaments for a specific sport
(the returned data is translated in the specified
Locale)
(possible types: BasicTournament, Tournament, Stage) |
Competition |
getCompetition(Urn id)
Returns a
Competition representing the specified competition
(the returned data is translated in the configured Locales using the UofConfigurationImpl) |
Competition |
getCompetition(Urn id,
Locale locale)
Returns a
Competition representing the specified competition
(the returned data is translated in the specified Locale) |
List<Competition> |
getCompetitionsFor(Date date)
Returns a list of all competitions scheduled on the specified date
(the returned data is translated in the configured
Locales using the UofConfigurationImpl) |
List<Competition> |
getCompetitionsFor(Date date,
Locale locale)
Returns a list of all competitions scheduled on the specified date
(the returned data is translated in the specified
Locale) |
Competitor |
getCompetitor(Urn id)
Returns a
Competitor representing the specified competitor
(the returned data is translated in the configured Locales using the UofConfigurationImpl) |
Competitor |
getCompetitor(Urn id,
Locale locale)
Returns a
Competitor representing the specified competitor
(the returned data is translated in the specified Locale) |
List<FixtureChange> |
getFixtureChanges()
Returns the list of all fixtures that have changed in the last 24 hours
|
List<FixtureChange> |
getFixtureChanges(Date after,
Urn sportId)
Returns the list of all fixtures that have changed in the last 24 hours
|
List<FixtureChange> |
getFixtureChanges(Date after,
Urn sportId,
Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours
|
List<FixtureChange> |
getFixtureChanges(Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours
|
List<Competition> |
getListOfSportEvents(int startIndex,
int limit)
Lists almost all events we are offering prematch odds for.
|
List<Competition> |
getListOfSportEvents(int startIndex,
int limit,
Locale locale)
Lists almost all events we are offering prematch odds for.
|
List<Competition> |
getLiveCompetitions()
Returns all the competitions that are currently live
(the returned data is translated in the configured
Locales using the UofConfigurationImpl) |
List<Competition> |
getLiveCompetitions(Locale locale)
Returns all the competitions that are currently live
(the returned data is translated in the specified
Locale) |
LongTermEvent |
getLongTermEvent(Urn id)
Returns the specified long term event
(the returned data is translated in the configured
Locales using the UofConfigurationImpl) |
LongTermEvent |
getLongTermEvent(Urn id,
Locale locale)
Returns the specified long term event
(the returned data is translated in the specified
Locale) |
List<Lottery> |
getLotteries(Locale locale)
Returns all the available lotteries
(the returned data is translated in the specified
Locale) |
List<PeriodStatus> |
getPeriodStatuses(Urn id,
Locale locale,
List<Urn> competitorIds,
List<Integer> periods)
Returns the list of
PeriodStatus from the sport event period summary endpoint |
PlayerProfile |
getPlayerProfile(Urn id)
Returns a
PlayerProfile representing the specified competitor
(the returned data is translated in the configured Locales using the UofConfigurationImpl) |
PlayerProfile |
getPlayerProfile(Urn id,
Locale locale)
Returns a
PlayerProfile representing the specified competitor
(the returned data is translated in the specified Locale) |
List<ResultChange> |
getResultChanges()
Returns the list of all fixtures that have changed in the last 24 hours
|
List<ResultChange> |
getResultChanges(Date after,
Urn sportId)
Returns the list of all fixtures that have changed in the last 24 hours
|
List<ResultChange> |
getResultChanges(Date after,
Urn sportId,
Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours
|
List<ResultChange> |
getResultChanges(Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours
|
SportEvent |
getSportEvent(Urn id)
Returns the specified sport event
(the returned data is translated in the configured
Locales using the UofConfigurationImpl) |
SportEvent |
getSportEvent(Urn id,
Locale locale)
Returns the specified sport event
(the returned data is translated in the specified
Locale) |
List<Sport> |
getSports()
Returns all the available sports
(the returned data is translated in the configured
Locales using the UofConfigurationImpl) |
List<Sport> |
getSports(Locale locale)
Returns all the available sports
(the returned data is translated in the specified
Locale) |
List<TimelineEvent> |
getTimelineEvents(Urn id,
Locale locale)
Returns the list of
TimelineEvent for the sport event |
void |
purgeCompetitorProfileCacheData(Urn competitorId)
Purges the associated competitor cache item
|
void |
purgePlayerProfileCacheData(Urn playerId)
Purges the associated player profile cache item
|
void |
purgeSportEventCacheData(Urn eventId)
Purges the associated sport event cache item
|
void |
purgeSportEventCacheData(Urn eventId,
boolean includeStatusPurge)
Purges the associated sport event cache item
|
List<Sport> getSports()
Locales using the UofConfigurationImpl)List<Sport> getSports(Locale locale)
Locale)locale - - the Locale in which to provide the dataList<SportEvent> getActiveTournaments()
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage)List<SportEvent> getActiveTournaments(Locale locale)
Locale)
(possible types: BasicTournament, Tournament, Stage)locale - - the Locale in which to provide the dataList<SportEvent> getActiveTournaments(String sportName)
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage)sportName - - the specific sport nameList<SportEvent> getActiveTournaments(String sportName, Locale locale)
Locale)
(possible types: BasicTournament, Tournament, Stage)sportName - - the specific sport namelocale - - the Locale in which to provide the dataList<Competition> getCompetitionsFor(Date date)
Locales using the UofConfigurationImpl)date - - the date for which to list all active competitionsList<Competition> getCompetitionsFor(Date date, Locale locale)
Locale)date - - the date for which to list all active competitionslocale - - the Locale in which to provide the dataList<Competition> getLiveCompetitions()
Locales using the UofConfigurationImpl)List<Competition> getLiveCompetitions(Locale locale)
Locale)locale - - the Locale in which to provide the dataSportEvent getSportEvent(Urn id)
Locales using the UofConfigurationImpl)id - - an Urn identifier specifying the sport eventSportEvent getSportEvent(Urn id, Locale locale)
Locale)LongTermEvent getLongTermEvent(Urn id)
Locales using the UofConfigurationImpl)id - - an Urn identifier specifying the requested long term eventLongTermEvent getLongTermEvent(Urn id, Locale locale)
Locale)Competition getCompetition(Urn id)
Competition representing the specified competition
(the returned data is translated in the configured Locales using the UofConfigurationImpl)id - - an Urn identifier specifying the competition requestedCompetition representing the specified competitionCompetition getCompetition(Urn id, Locale locale)
Competition representing the specified competition
(the returned data is translated in the specified Locale)id - - an Urn identifier specifying the competition requestedlocale - - the Locale in which to provide the dataCompetition representing the specified competition translated in the provided localeCompetitor getCompetitor(Urn id)
Competitor representing the specified competitor
(the returned data is translated in the configured Locales using the UofConfigurationImpl)id - - a unique competitor Urn identifierCompetitor representing the competitor associated with the provided UrnCompetitor getCompetitor(Urn id, Locale locale)
Competitor representing the specified competitor
(the returned data is translated in the specified Locale)id - - a unique competitor Urn identifierlocale - - the Locale in which to provide the dataCompetitor representing the competitor associated with the provided UrnPlayerProfile getPlayerProfile(Urn id)
PlayerProfile representing the specified competitor
(the returned data is translated in the configured Locales using the UofConfigurationImpl)id - - a unique player Urn identifierPlayerProfile representing the specified competitorPlayerProfile getPlayerProfile(Urn id, Locale locale)
PlayerProfile representing the specified competitor
(the returned data is translated in the specified Locale)id - - a unique player Urn identifierlocale - - the Locale in which to provide the dataPlayerProfile representing the specified competitorvoid purgeSportEventCacheData(Urn eventId)
eventId - the identifier of the cache item to purgevoid purgeSportEventCacheData(Urn eventId, boolean includeStatusPurge)
eventId - the identifier of the cache item to purgeincludeStatusPurge - an indication if the associated sport event status should be purged toovoid purgeCompetitorProfileCacheData(Urn competitorId)
competitorId - the identifier of the cache item to purgevoid purgePlayerProfileCacheData(Urn playerId)
playerId - the identifier of the cache item to purgeList<FixtureChange> getFixtureChanges()
FixtureChangeList<FixtureChange> getFixtureChanges(Locale locale)
locale - - the Locale in which to provide the dataFixtureChangeList<FixtureChange> getFixtureChanges(Date after, Urn sportId)
after - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedFixtureChangeList<FixtureChange> getFixtureChanges(Date after, Urn sportId, Locale locale)
after - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedlocale - - the Locale in which to provide the dataFixtureChangeList<ResultChange> getResultChanges()
ResultChangeList<ResultChange> getResultChanges(Locale locale)
locale - - the Locale in which to provide the dataResultChangeList<ResultChange> getResultChanges(Date after, Urn sportId)
after - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedResultChangeList<ResultChange> getResultChanges(Date after, Urn sportId, Locale locale)
after - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedlocale - - the Locale in which to provide the dataResultChangeList<Competition> getListOfSportEvents(int startIndex, int limit)
startIndex - starting index (zero based)limit - how many records to return (max: 1000)List<Competition> getListOfSportEvents(int startIndex, int limit, Locale locale)
startIndex - starting index (zero based)limit - how many records to return (max: 1000)locale - the Locale in which to provide the dataList<SportEvent> getAvailableTournaments(Urn sportId)
UofConfigurationImpl)
(possible types: BasicTournament, Tournament, Stage)sportId - - the specific sport idList<SportEvent> getAvailableTournaments(Urn sportId, Locale locale)
Locale)
(possible types: BasicTournament, Tournament, Stage)sportId - - the specific sport idlocale - - the Locale in which to provide the dataInteger deleteSportEventsFromCache(Date before)
before - the scheduled Date used to delete sport events from cacheList<ExportableCi> cacheExport(EnumSet<CacheType> cacheType)
cacheType - specifies what type of cache items will be exportedExportableCi containing all the items currently in the cachevoid cacheImport(List<ExportableCi> items)
items - List of ExportableCi containing the items to be importedList<Lottery> getLotteries(Locale locale)
Locale)locale - - the Locale in which to provide the dataList<PeriodStatus> getPeriodStatuses(Urn id, Locale locale, List<Urn> competitorIds, List<Integer> periods)
PeriodStatus from the sport event period summary endpointid - the id of the sport event to be fetchedlocale - the Locale in which to provide the data (can be null)competitorIds - the list of competitor ids to fetch the results for (can be null)periods - the list of period ids to fetch the results for (can be null)PeriodStatus from the sport event period summary endpointList<TimelineEvent> getTimelineEvents(Urn id, Locale locale)
TimelineEvent for the sport eventid - the id of the sport event to be fetchedlocale - the Locale in which to provide the data (can be null)TimelineEvent for the sport eventCopyright © 2016–2025. All rights reserved.