diff --git a/src/OnePeek.Api/IOnePeekApi.cs b/src/OnePeek.Api/IOnePeekApi.cs index bf1a10f..3826f61 100644 --- a/src/OnePeek.Api/IOnePeekApi.cs +++ b/src/OnePeek.Api/IOnePeekApi.cs @@ -83,5 +83,36 @@ namespace OnePeek.Api /// Culture of the query (returns location specific metadata + ratings). /// Task Search(string searchTerm, StoreType store, StoreCultureType storeCulture); + + /// + /// Get spotlight entries for the current day in the specified culture + /// + /// Can either be apps or games. Both return approx. 20 new results per day. + /// The store where the app is published. + /// Culture of the query (returns location specific metadata + ratings). + /// + Task GetSpotlight(StoreSpotlightType spotlightType, StoreType store, StoreCultureType storeCulture); + + /// + /// Get spotlight entries for the current day in the specified culture. + /// This only returns IDs for fast access. + /// + /// Can either be apps or games. Both return approx. 20 new results per day. + /// The store where the app is published. + /// Culture of the query (returns location specific metadata + ratings). + /// + Task GetSpotlightIds(StoreSpotlightType spotlightType, StoreType store, StoreCultureType storeCulture); + + /// + /// Get spotlight entries for the current day in the specified culture. + /// This only returns IDs for fast access. + /// Warning: This method makes a request per culture (100+) which can take a while. + /// + /// Can either be apps or games. Both return approx. 20 new results per day. + /// The store where the app is published. + /// The canellation token. + /// The progress event gets triggered as soon as new data arrives. + /// + Task> GetSpotlightIdsForAllCultures(StoreSpotlightType spotlightType, StoreType store, CancellationToken ct, IProgress progress = null); } }