Skip to main content

ShopEditor

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

Online client for managing shop items and item sets, an Alta staff tool. Reached through ShopClient.Editor; calls Alta's web API, which no longer answers.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private readonly IHighLevelApiClientManager clientManagerThe client manager requests are sent through.
private ItemSetRequest itemSetRequestLast request built by CreateNewItemSet.
private ItemSetRequest setRequestLast request built by UpdateItemSetAsync.

Methods​

MemberWhat it is
Task AddImageToItemAsync(int itemId, ImageType imageType, string imagePath)Uploads an image of the given type for an item.
Task<ShopItemDetailed> CreateNewItem(ShopItemDetailed itemToCreate)Creates a shop item.
Task<ShopItemSet> CreateNewItemSet(ShopItemDetailed setItem, IEnumerable<int> items, ItemSetType type = 22)Creates an item set (an outfit by default) from a set item and item IDs.
Task DeleteItem(ShopItemDetailed itemToDelete)Deletes a shop item.
Task DeleteItemSet(ShopItemSet setToDelete)Deletes an item set by its SKU.
Task<ShopItemDetailed> GetItem(int itemIdentifier)Gets one shop item by ID.
Task<ShopItemSet> GetItemSet(string setSku)Gets an item set by SKU.
async Task<ShopItemDetailed> UpdateItemAsync(ShopItemDetailed itemToUpdate)Updates a shop item.
Task<ShopItemSet> UpdateItemSetAsync(ShopItemDetailed setItem, IEnumerable<int> items, ItemSetType type = 22)Replaces an item set's items and type.