Ejemplo n.º 1
0
        public void SellItemTest()
        {
            AppId.AppName      app  = AppId.AppName.CounterStrikGlobalOffensive;
            SteamInventoryItem item = null;

            foreach (AppId.AppName appId in Enum.GetValues(typeof(AppId.AppName)))
            {
                AccountInventory accountInventorys = Inventories.GetAccountInventory(appId, 1);
                if (accountInventorys.SteamInventory.TotalItems > 0)
                {
                    item = accountInventorys.SteamInventory.SteamInventoryItems[0];
                    app  = appId;
                    break;
                }
            }

            if (item != null)
            {
                string itemId    = item.ItemIds[0];
                double itemPrice = item.SuggestedPrice.Value * 5;
                InformationAboutSale information = Sale.SellItem(app, new List <string> {
                    itemId
                }, new List <double> {
                    itemPrice
                });
                string id = information.SoldItems[0].ItemId;
                Assert.AreEqual(itemId, id);
            }

            Assert.IsTrue(true);
        }
Ejemplo n.º 2
0
 public void LoadInfoFromItem(SteamInventoryItem item)
 {
     Id         = item.Id;
     ClassId    = item.ClassId;
     InstanceId = item.InstanceId;
     Amount     = item.Amount;
     Position   = item.Position;
 }
Ejemplo n.º 3
0
 // Token: 0x0600F416 RID: 62486 RVA: 0x00549FB7 File Offset: 0x005481B7
 public SteamInventoryItem(SteamInventoryItem POONBAIJMMC)
 {
     this.steamid = POONBAIJMMC.steamid;
     this.item    = POONBAIJMMC.item;
     this.isLocal = POONBAIJMMC.isLocal;
 }