Class IrDataClientImpl
- java.lang.Object
-
- de.bausdorf.simracing.irdataapi.client.impl.IrDataClientImpl
-
- All Implemented Interfaces:
IrDataClient
public class IrDataClientImpl extends Object implements IrDataClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIrDataClientImpl.StatefulRestTemplateInterceptor
-
Field Summary
Fields Modifier and Type Field Description static StringCAR_CLASS_ID_URL_PARAMstatic StringEVENT_TYPE_URL_PARAMstatic StringLEAGUE_ID_URL_PARAMstatic StringRACE_WEEK_NUM_URL_PARAMstatic StringRETURNED_NULL_BODYstatic StringSEASON_ID_URL_PARAMstatic StringSEASON_ID_URL_PARAM2static StringSIMSESSION_NUMBER_URL_PARAMstatic StringSUBSESSION_ID_URL_PARAM
-
Constructor Summary
Constructors Constructor Description IrDataClientImpl()
-
Method Summary
-
-
-
Field Detail
-
RETURNED_NULL_BODY
public static final String RETURNED_NULL_BODY
- See Also:
- Constant Field Values
-
SUBSESSION_ID_URL_PARAM
public static final String SUBSESSION_ID_URL_PARAM
- See Also:
- Constant Field Values
-
SIMSESSION_NUMBER_URL_PARAM
public static final String SIMSESSION_NUMBER_URL_PARAM
- See Also:
- Constant Field Values
-
SEASON_ID_URL_PARAM
public static final String SEASON_ID_URL_PARAM
- See Also:
- Constant Field Values
-
EVENT_TYPE_URL_PARAM
public static final String EVENT_TYPE_URL_PARAM
- See Also:
- Constant Field Values
-
RACE_WEEK_NUM_URL_PARAM
public static final String RACE_WEEK_NUM_URL_PARAM
- See Also:
- Constant Field Values
-
CAR_CLASS_ID_URL_PARAM
public static final String CAR_CLASS_ID_URL_PARAM
- See Also:
- Constant Field Values
-
LEAGUE_ID_URL_PARAM
public static final String LEAGUE_ID_URL_PARAM
- See Also:
- Constant Field Values
-
SEASON_ID_URL_PARAM2
public static final String SEASON_ID_URL_PARAM2
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLogResponseJson
public void setLogResponseJson(@NonNull Boolean logResponse)- Specified by:
setLogResponseJsonin interfaceIrDataClient
-
isLogResponseJson
public boolean isLogResponseJson()
- Specified by:
isLogResponseJsonin interfaceIrDataClient
-
setHashPassword
public void setHashPassword(boolean hashPassword)
- Specified by:
setHashPasswordin interfaceIrDataClient
-
isHashPassword
public boolean isHashPassword()
- Specified by:
isHashPasswordin interfaceIrDataClient
-
authenticate
public AuthResponseDto authenticate(@NonNull LoginRequestDto requestDto)
- Specified by:
authenticatein interfaceIrDataClient
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticatedin interfaceIrDataClient
-
getMembersInfo
public MembersInfoDto getMembersInfo(@NonNull List<Long> custIds)
- Specified by:
getMembersInfoin interfaceIrDataClient
-
getUserInfo
public UserInfoDto getUserInfo()
- Specified by:
getUserInfoin interfaceIrDataClient
-
getMemberSummary
public MemberSummaryDto getMemberSummary()
- Specified by:
getMemberSummaryin interfaceIrDataClient
-
getMemberSummary
public MemberSummaryDto getMemberSummary(Long custId)
- Specified by:
getMemberSummaryin interfaceIrDataClient
-
getMemberStatsYearly
public MemberYearlyDto getMemberStatsYearly(@NonNull Long custId)
- Specified by:
getMemberStatsYearlyin interfaceIrDataClient
-
getMemberCareer
public MemberCareerDto getMemberCareer(@NonNull Long custId)
- Specified by:
getMemberCareerin interfaceIrDataClient
-
getMemberChartData
public MemberChartDataDto getMemberChartData(Long custId, CategoryType category, ChartType chartType)
- Specified by:
getMemberChartDatain interfaceIrDataClient
-
getMemberDivision
public MemberDivisonDto getMemberDivision(Long seasonId, Long eventType)
- Specified by:
getMemberDivisionin interfaceIrDataClient
-
getSeasonDriverStandings
public DriverStandingsDto getSeasonDriverStandings(Long seasonId, Long carClassId)
- Specified by:
getSeasonDriverStandingsin interfaceIrDataClient
-
getSeasonDriverStandings
public DriverStandingsDto getSeasonDriverStandings(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonDriverStandingsin interfaceIrDataClient
-
getSeasonSupersessionStandings
public DriverStandingsDto getSeasonSupersessionStandings(Long seasonId, Long carClassId)
- Specified by:
getSeasonSupersessionStandingsin interfaceIrDataClient
-
getSeasonSupersessionStandings
public DriverStandingsDto getSeasonSupersessionStandings(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonSupersessionStandingsin interfaceIrDataClient
-
getSeasonTeamStandings
public DriverStandingsDto getSeasonTeamStandings(Long seasonId, Long carClassId)
- Specified by:
getSeasonTeamStandingsin interfaceIrDataClient
-
getSeasonTimeTrialStandings
public DriverStandingsDto getSeasonTimeTrialStandings(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonTimeTrialStandingsin interfaceIrDataClient
-
getSeasonTimeTrialResults
public DriverStandingsDto getSeasonTimeTrialResults(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonTimeTrialResultsin interfaceIrDataClient
-
getSeasonQualifyResults
public DriverStandingsDto getSeasonQualifyResults(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonQualifyResultsin interfaceIrDataClient
-
getSeasonTimeTrialStandings
public DriverStandingsDto getSeasonTimeTrialStandings(Long seasonId, Long carClassId)
- Specified by:
getSeasonTimeTrialStandingsin interfaceIrDataClient
-
getSeasonTeamStandings
public DriverStandingsDto getSeasonTeamStandings(Long seasonId, Long carClassId, Long raceWeekNum)
- Specified by:
getSeasonTeamStandingsin interfaceIrDataClient
-
getMemberRecentRaces
public MemberRecentRacesDto getMemberRecentRaces(@NonNull Long custId)
- Specified by:
getMemberRecentRacesin interfaceIrDataClient
-
getCarInfo
public CarInfoDto[] getCarInfo()
- Specified by:
getCarInfoin interfaceIrDataClient
-
getCarClasses
public CarClassDto[] getCarClasses()
- Specified by:
getCarClassesin interfaceIrDataClient
-
getDivisions
public ConstantDto[] getDivisions()
- Specified by:
getDivisionsin interfaceIrDataClient
-
getCategories
public ConstantDto[] getCategories()
- Specified by:
getCategoriesin interfaceIrDataClient
-
getEventTypes
public ConstantDto[] getEventTypes()
- Specified by:
getEventTypesin interfaceIrDataClient
-
getCarAssets
public Map<Long,CarAssetDto> getCarAssets()
- Specified by:
getCarAssetsin interfaceIrDataClient
-
getTrackAssets
public Map<Long,TrackAssetDto> getTrackAssets()
- Specified by:
getTrackAssetsin interfaceIrDataClient
-
getSeriesAssets
public Map<Long,SeriesAssetDto> getSeriesAssets()
- Specified by:
getSeriesAssetsin interfaceIrDataClient
-
getLeagueInfo
public LeagueInfoDto getLeagueInfo(long leagueId)
- Specified by:
getLeagueInfoin interfaceIrDataClient
-
getSeasonInfo
public SeasonDto[] getSeasonInfo(Boolean includeSeries)
- Specified by:
getSeasonInfoin interfaceIrDataClient
-
getSeriesStats
public SeriesInfoDto[] getSeriesStats()
- Specified by:
getSeriesStatsin interfaceIrDataClient
-
getSeries
public SeriesDto[] getSeries()
- Specified by:
getSeriesin interfaceIrDataClient
-
getTrackInfos
public TrackInfoDto[] getTrackInfos()
- Specified by:
getTrackInfosin interfaceIrDataClient
-
getLicenseGroups
public LicenseGroupDto[] getLicenseGroups()
- Specified by:
getLicenseGroupsin interfaceIrDataClient
-
getLookup
public LookupDto[] getLookup(List<LookupTypes> lookupTypes)
- Specified by:
getLookupin interfaceIrDataClient
-
getSubsessionResult
public SubsessionResultDto getSubsessionResult(Long subsessionId)
- Specified by:
getSubsessionResultin interfaceIrDataClient
-
getLapChartData
public LapChartDto getLapChartData(Long subsessionId, Long simsessionNumber)
- Specified by:
getLapChartDatain interfaceIrDataClient
-
getLapData
public LapDataDto getLapData(Long subsessionId, Long simsessionNumber)
- Specified by:
getLapDatain interfaceIrDataClient
-
getLapData
public LapDataDto getLapData(Long subsessionId, Long simsessionNumber, Long driverOrTeamId, boolean isTeamId)
- Specified by:
getLapDatain interfaceIrDataClient
-
getEventLog
public EventLogDto getEventLog(Long subsessionId, Long simsessionNumber)
- Specified by:
getEventLogin interfaceIrDataClient
-
getLapEntries
public List<LapChartEntryDto> getLapEntries(@NonNull ChunkInfoDto chunkInfo)
- Specified by:
getLapEntriesin interfaceIrDataClient
-
getEventLogEntries
public List<EventLogEntryDto> getEventLogEntries(ChunkInfoDto chunkInfo)
- Specified by:
getEventLogEntriesin interfaceIrDataClient
-
getDriverStandingEntries
public List<DriverStandingDto> getDriverStandingEntries(ChunkInfoDto chunkInfo)
- Specified by:
getDriverStandingEntriesin interfaceIrDataClient
-
getTeamStandingEntries
public List<TeamStandingDto> getTeamStandingEntries(ChunkInfoDto chunkInfo)
- Specified by:
getTeamStandingEntriesin interfaceIrDataClient
-
getTimeTrialStandingEntries
public List<DriverTtStandingDto> getTimeTrialStandingEntries(ChunkInfoDto chunkInfo)
- Specified by:
getTimeTrialStandingEntriesin interfaceIrDataClient
-
getQualifyStandingEntries
public List<DriverQualifyStandingDto> getQualifyStandingEntries(ChunkInfoDto chunkInfo)
- Specified by:
getQualifyStandingEntriesin interfaceIrDataClient
-
getSeasonResults
public SeasonResultsDto getSeasonResults(Long seasonId)
- Specified by:
getSeasonResultsin interfaceIrDataClient
-
getSeasonResults
public SeasonResultsDto getSeasonResults(Long seasonId, Long eventType)
- Specified by:
getSeasonResultsin interfaceIrDataClient
-
getSeasonResults
public SeasonResultsDto getSeasonResults(Long seasonId, Long eventType, Long raceWeekNum)
- Specified by:
getSeasonResultsin interfaceIrDataClient
-
getTeamMembers
public TeamInfoDto getTeamMembers(Long teamId)
- Specified by:
getTeamMembersin interfaceIrDataClient
-
getLeagueSessions
public CustLeagueSessionsDto getLeagueSessions(@NonNull Boolean mine)
- Specified by:
getLeagueSessionsin interfaceIrDataClient
-
getLeagueSessions
public CustLeagueSessionsDto getLeagueSessions(@NonNull Boolean mine, @Nullable Long packageId)
- Specified by:
getLeagueSessionsin interfaceIrDataClient
-
searchLeagueDirectory
public LeagueDirectoryDto searchLeagueDirectory(LeagueSearchRequest searchRequest)
- Specified by:
searchLeagueDirectoryin interfaceIrDataClient
-
getLeaguePointSystems
public LeaguePointSystemsDto getLeaguePointSystems(Long leagueId, Long seasonId)
- Specified by:
getLeaguePointSystemsin interfaceIrDataClient
-
getLeaguePointSystems
public LeaguePointSystemsDto getLeaguePointSystems(Long leagueId)
- Specified by:
getLeaguePointSystemsin interfaceIrDataClient
-
getLeagueSeasons
public LeagueSeasonsDto getLeagueSeasons(Long leagueId, Boolean retired)
- Specified by:
getLeagueSeasonsin interfaceIrDataClient
-
getLeagueSeasons
public LeagueSeasonsDto getLeagueSeasons(Long leagueId)
- Specified by:
getLeagueSeasonsin interfaceIrDataClient
-
getLeagueSeasonStandings
public SeasonStandingsDto getLeagueSeasonStandings(Long leagueId, Long seasonId, Long carClassId, Long carId)
- Specified by:
getLeagueSeasonStandingsin interfaceIrDataClient
-
getLeagueSeasonStandings
public SeasonStandingsDto getLeagueSeasonStandings(Long leagueId, Long seasonId, Long carClassId)
- Specified by:
getLeagueSeasonStandingsin interfaceIrDataClient
-
getLeagueSeasonStandings
public SeasonStandingsDto getLeagueSeasonStandings(Long leagueId, Long seasonId)
- Specified by:
getLeagueSeasonStandingsin interfaceIrDataClient
-
getLeagueSeasonSessions
public LeagueSeasonSessionsDto getLeagueSeasonSessions(Long leagueId, Long seasonId, Boolean resultsOnly)
- Specified by:
getLeagueSeasonSessionsin interfaceIrDataClient
-
getLeagueSeasonSessions
public LeagueSeasonSessionsDto getLeagueSeasonSessions(Long leagueId, Long seasonId)
- Specified by:
getLeagueSeasonSessionsin interfaceIrDataClient
-
searchHostedSeries
public SearchResultDto searchHostedSeries(ResultSearchRequest searchRequest)
- Specified by:
searchHostedSeriesin interfaceIrDataClient
-
getHostedResultEntries
public List<HostedSessionSearchResultDto> getHostedResultEntries(ChunkInfoDto chunkInfo)
- Specified by:
getHostedResultEntriesin interfaceIrDataClient
-
searchIRacingSeries
public SearchResultDto searchIRacingSeries(ResultSearchRequest searchRequest)
- Specified by:
searchIRacingSeriesin interfaceIrDataClient
-
getSeriesResultEntries
public List<SeriesSessionSearchResultDto> getSeriesResultEntries(ChunkInfoDto chunkInfo)
- Specified by:
getSeriesResultEntriesin interfaceIrDataClient
-
getApiDocs
public com.fasterxml.jackson.databind.JsonNode getApiDocs()
-
-