Skip to content

Commit c275d1e

Browse files
authored
Merge pull request #253 from edgiardina/feature/pinballapi-3.2.7
Upgrade PinballApi to 3.2.7
2 parents 6335836 + 0553da3 commit c275d1e

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

Caching/CachingPinballRankingApi.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using PinballApi.Models.WPPR.Universal.Series;
1616
using PinballApi.Models.WPPR.Universal.Stats;
1717
using PinballApi.Models.WPPR.Universal.Tournaments;
18+
using PinballApi.Models.WPPR.Universal.Other;
1819
using PinballApi.Models.WPPR.Universal.Tournaments.Search;
1920
using Polly;
2021
using 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(

IfpaMaui.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
100100
<PackageReference Include="The49.Maui.BottomSheet" Version="8.0.3" />
101101

102-
<PackageReference Include="PinballApi" Version="3.2.6" />
102+
<PackageReference Include="PinballApi" Version="3.2.7" />
103103
</ItemGroup>
104104

105105
<PropertyGroup>

0 commit comments

Comments
 (0)