public async Task <List <BoosterCard> > UnpackBooster(uint appId, ulong assetId) { var url = _steamUrlService.UnpackBoosterUrl(); var data = new UnpackBoosterPostModel( _profileSettings.SessionId, appId, assetId); var response = await _webRequestService.PostRequestAsync <UnpackBoosterResponseModel>(url, data); return(response.Cards.Select(x => x.ToModel()).ToList()); }
/// <summary> /// Sell item on market (requires confirmation) /// </summary> /// <param name="item">Item to sell.</param> /// <param name="price">Price (85% of original market price).</param> /// <returns></returns> public async Task SellItemAsync(InventoryItem item, uint price) { var url = _steamUrlService.SellItemUrl(); var data = new SellItemPostModel( _profileSettings.SessionId, item.AppId, item.AssetId, item.ContextId, price); await _requestService.PostRequestAsync <SteamResponseBase>(url, data); _logger.LogInformation($"Sent to market item '{item.MarketHashName}' assetId: '{item.AssetId}' with price '{price}'"); }
public async Task GrindItemIntoGooAsync(uint appId, ulong assetId, uint contextId) { var url = _steamUrlService.GrindItemIntoGooUrl(); var data = new GrindItemIntoGemsPostModel( _profileSettings.SessionId, appId, assetId, contextId); await _requestService.PostRequestAsync <SteamResponseBase>(url, data); }