Skip to main content

ShopAccount

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Online client for a player's shop account: balance, owned items and gifts. Reached through ShopClient.Account; calls Alta's web API, which no longer answers.

Constructors​

1 private and internal constructor
MemberWhat it is
internal ShopAccount(IHighLevelApiClientManager clientManager)Creates a ShopAccount from clientManager.

Fields​

1 private and internal field
MemberWhat it is
private readonly IHighLevelApiClientManager clientManagerThe client manager requests are sent through.

Methods​

MemberWhat it is
Task<SubscriptionRefreshResult> CheckForSubscriptionRewardsAsync()Asks the API to hand out any subscription rewards due.
Task<IEnumerable<OwnedShopItem>> GetOwnedItems()Lists the logged-in user's owned shop items.
Task<ShopAccountInfo> GetShopAccountInfo()Gets shop account details (supporter status, shards) for the logged-in user or a given user.
Task<ShopAccountInfo> GetShopAccountInfo(int userIdentifier)Gets shop account details (supporter status, shards) for the logged-in user or a given user.
Task<GiftResult> GiftItem(int userIdentifier, string itemSku)Gifts an item by SKU to a user.
Task RemoveItem(int userIdentifier, int itemIdentifier)Removes an item from a user's account.