OfflineShopApiClient
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Offline stand-in for the shop client. Ownership checks always pass; shop configuration calls throw OfflineException.
- Listed in Alta.Api.Client
- Inherits or implements
IShopApiClient
Constructors
| Member | What it is |
|---|---|
OfflineShopApiClient() | Creates an OfflineShopApiClient with default values. |
Properties
| Member | What it is |
|---|---|
IShopAccount Account { get; } | An OfflineShopAccount. |
IShopEditor Editor { get; } | An OfflineShopEditor, which throws on every call. |
IOculusShop Oculus { get; } | Throws NotImplementedException. |
IShopPurchase Purchase { get; } | An OfflineShopPurchase, which throws on every call. |
Methods
| Member | What it is |
|---|---|
Task<ShopPageConfiguration> GetCurrentShopConfiguration() | Throws OfflineException. |
Task<IEnumerable<ShopItemDetailedForUser>> GetCurrentShopConfigurationForUser() | Throws OfflineException. |
Task<ShopPageConfigurationWithBanner> GetCurrentShopConfigurationWithBanner() | Throws OfflineException. |
Task<IEnumerable<ShopItem>> GetFullItemDescriptions(IEnumerable<int> itemIdentifiers) | Throws OfflineException. |
async Task<string> GetShopTokenAsync() | Returns an empty string. |
async Task<bool> ValidateUsersPurchasesAsync(int userIdentifier, IEnumerable<uint> itemHashes) | Always true. |
async Task<bool> ValidateUsersPurchasesViaSKUsAsync(int userIdentifier, IEnumerable<string> itemSKUs) | Always true. |