NotifierCore.Notifier.HotItemController.UpdatePrice C# (CSharp) Méthode

UpdatePrice() public static méthode

public static UpdatePrice ( AggregateListing listing, HotItem hotItem ) : void
listing AggregateListing
hotItem HotItem
Résultat void
        public static void UpdatePrice(AggregateListing listing, HotItem hotItem)
        {
            hotItem.BuyVolume = listing.BuyOffers.Quantity;
            hotItem.BuyPrice = listing.BuyOffers.UnitPrice;

            hotItem.SaleVolume = listing.SellOffers.Quantity;
            hotItem.SellPrice = listing.SellOffers.UnitPrice;

            hotItem.UpdatePriceChanged();
        }