Example #1
0
        private void ReportItemSoldToLog(NetworkAuctionInfo.ItemModel soldItem)
        {
            if (soldItem.ItemData.ItemType == Declarations.PLAYER.ToLower())
            {
                General.AddToLog($"{Player.GetName(soldItem.ItemData.AssetId)} {Player.GetRating(soldItem.ItemData.AssetId)} sold for {soldItem.CurrentBid}");
            }

            if (soldItem.ItemData.ItemType == "training") // Chemistry Style
            {
                General.AddToLog($"{ChemistryStyle.GetName(soldItem.ItemData.CardSubTypeId)} sold for {soldItem.CurrentBid}");
            }
        }
Example #2
0
 private void AddItemToTradepileGrid(NetworkAuctionInfo.ItemModel item)
 {
     ViewModel.Tradepile.Add(new TradePileGrid
     {
         Name        = item.ItemData.ItemType == "player" ? Player.GetName(item.ItemData.AssetId) : ChemistryStyle.GetName(item.ItemData.CardSubTypeId),
         Duration    = item.Expires,
         Status      = item.TradeState,
         Rating      = item.ItemData.Rating,
         Type        = item.ItemData.ItemType == "player" ? Declarations.PLAYER : Declarations.CHEMISTRY_STYLE,
         BuyNowPrice = item.BuyNowPrice
     });
 }