mirror of
https://github.com/Ahrimdon/detailed-cod-tracker.git
synced 2025-03-15 04:33:34 -04:00
22 lines
859 B
C#
22 lines
859 B
C#
|
namespace CSharp_CODAPI
|
|||
|
{
|
|||
|
public class SHOP
|
|||
|
{
|
|||
|
public async Task<BaseAPIResponse?> purchasableItems(string gameId)
|
|||
|
{
|
|||
|
return await Http.sendRequest<BaseAPIResponse>($"/inventory/v1/title/{gameId}/platform/psn/purchasable/public/en");
|
|||
|
}
|
|||
|
|
|||
|
public async Task<BaseAPIResponse?> bundleInformation(string title, string bundleId)
|
|||
|
{
|
|||
|
return await Http.sendRequest<BaseAPIResponse>($"/inventory/v1/title/{title}/bundle/{bundleId}/en");
|
|||
|
}
|
|||
|
|
|||
|
public async Task<BaseAPIResponse?> battlePassLoot(long season, Platforms platform)
|
|||
|
{
|
|||
|
(_, var platformStr, _) = Helpers.mapGamertagToPlatform(string.Empty, platform, true);
|
|||
|
return await Http.sendRequest<BaseAPIResponse>($"/loot/title/mw/platform/{platformStr}/list/loot_season_{season}/en");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|