using DomainObjects.Documents;
using DomainObjects.Enumerations;
using WeatherForecast.Models.Abstractions.PostItem.Responses;
namespace WeatherForecast.Models.Shop.Responses {
///
///
///
public class ShopItemResponseModel : 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 ShopItemResponseModel(ShopDocument shopCatalogItem, List categories) : base(shopCatalogItem, categories) {
Sku = shopCatalogItem.Sku;
Rating = shopCatalogItem.Rating;
Price = shopCatalogItem.Price;
NewPrice = shopCatalogItem.NewPrice;
Quantity = shopCatalogItem.Quantity;
}
///
///
///
///
///
///
public ShopItemResponseModel(ShopDocument shopCatalogItem, List categories, Locales locale) : base(shopCatalogItem, categories, locale) {
Sku = shopCatalogItem.Sku;
Rating = shopCatalogItem.Rating;
Price = shopCatalogItem.Price;
NewPrice = shopCatalogItem.NewPrice;
Quantity = shopCatalogItem.Quantity;
}
}
}