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}"); } }
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 }); }
public static bool ItemExistsInList(int assetID, int revID, string position, ChemistryStyle style) { return(GetFUTListItems().Any(x => x.AssetID == assetID && x.RevisionID == revID && position == x.Position && style == x.ChemistryStyle)); }