1515using PinballApi . Models . WPPR . Universal . Series ;
1616using PinballApi . Models . WPPR . Universal . Stats ;
1717using PinballApi . Models . WPPR . Universal . Tournaments ;
18+ using PinballApi . Models . WPPR . Universal . Other ;
1819using PinballApi . Models . WPPR . Universal . Tournaments . Search ;
1920using Polly ;
2021using Polly . Caching ;
@@ -104,6 +105,16 @@ await cache.PutAsync(ctx.OperationKey!,
104105 return q . Result ;
105106 }
106107
108+ public Task < List < CountryDetail > > GetCountriesList ( ) =>
109+ ExecuteWithCache (
110+ $ "CountriesList",
111+ ( ) => onlineApi . GetCountriesList ( ) ) ;
112+
113+ public Task < List < StateProvCountry > > GetStateProvList ( ) =>
114+ ExecuteWithCache (
115+ $ "StateProvList",
116+ ( ) => onlineApi . GetStateProvList ( ) ) ;
117+
107118 public Task < List < CountryDirector > > GetCountryDirectors ( ) =>
108119 ExecuteWithCache (
109120 $ "CountryDirectors",
@@ -114,10 +125,10 @@ public Task<List<CustomRankingView>> GetCustomRankings() =>
114125 $ "CustomRankings",
115126 ( ) => onlineApi . GetCustomRankings ( ) ) ;
116127
117- public Task < CustomRankingViewResult > GetCustomRankingViewResult ( int viewId , int count = 50 ) =>
128+ public Task < CustomRankingViewResult > GetCustomRankingViewResult ( int viewId , int count = 50 , int startPosition = 1 ) =>
118129 ExecuteWithCache (
119- $ "CustomRankingViewResult:{ viewId } :{ count } ",
120- ( ) => onlineApi . GetCustomRankingViewResult ( viewId , count ) ) ;
130+ $ "CustomRankingViewResult:{ viewId } :{ count } : { startPosition } ",
131+ ( ) => onlineApi . GetCustomRankingViewResult ( viewId , count , startPosition ) ) ;
121132
122133 public Task < Director > GetDirector ( long directorId ) =>
123134 ExecuteWithCache (
@@ -289,10 +300,10 @@ public Task<List<TournamentsByStateStatistics>> GetTournamentsByStateStatistics(
289300 $ "TournamentsByStateStats:{ playerSystem } ",
290301 ( ) => onlineApi . GetTournamentsByStateStatistics ( playerSystem ) ) ;
291302
292- public Task < PlayerSearch > PlayerSearch ( string name = null , string country = null , string stateProv = null , string tournamentName = null ) =>
303+ public Task < PlayerSearch > PlayerSearch ( string name = null , string country = null , string stateProv = null , string tournamentName = null , int ? tournamentPosition = null ) =>
293304 ExecuteWithCache (
294- $ "PlayerSearch:{ name } :{ country } :{ stateProv } :{ tournamentName } ",
295- ( ) => onlineApi . PlayerSearch ( name , country , stateProv , tournamentName ) ) ;
305+ $ "PlayerSearch:{ name } :{ country } :{ stateProv } :{ tournamentName } : { tournamentPosition } ",
306+ ( ) => onlineApi . PlayerSearch ( name , country , stateProv , tournamentName , tournamentPosition ) ) ;
296307
297308 public Task < ProRankingSearch > ProRankingSearch ( TournamentType rankingSystem ) =>
298309 ExecuteWithCache (
0 commit comments