Skip to main content

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.

Constructors​

MemberWhat it is
OfflineShopApiClient()Creates an OfflineShopApiClient with default values.

Properties​

MemberWhat 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​

MemberWhat 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.