using Core.DomainObjects; using Core.DomainObjects.Documents; using Core.DomainObjects.Pages; using Core.Enumerations; using WeatherForecast.Models.Abstractions; namespace WeatherForecast.Models { public class GetShopItemResponseModel : PostItemResponseModelBase { public string Sku { get; set; } public decimal? Rating { get; set; } public decimal Price { get; set; } public decimal? NewPrice { get; set; } public uint? Quantity { get; set; } public GetShopItemResponseModel(ShopItem shopCatalogItem, List categories) : base(shopCatalogItem, categories) { Sku = shopCatalogItem.Sku; Rating = shopCatalogItem.Rating; Price = shopCatalogItem.Price; NewPrice = shopCatalogItem.NewPrice; Quantity = shopCatalogItem.Quantity; } public GetShopItemResponseModel(ShopItem shopCatalogItem, List categories, Locales locale) : base(shopCatalogItem, categories, locale) { Sku = shopCatalogItem.Sku; Rating = shopCatalogItem.Rating; Price = shopCatalogItem.Price; NewPrice = shopCatalogItem.NewPrice; Quantity = shopCatalogItem.Quantity; } } }