reactredux/webapi/WeatherForecast/Models/Responses/GetShopItemResponseModel.cs

25 lines
840 B
C#

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<ShopItem> {
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<Category> categories, Locales locale) : base(shopCatalogItem, categories, locale) {
Sku = shopCatalogItem.Sku;
Rating = shopCatalogItem.Rating;
Price = shopCatalogItem.Price;
NewPrice = shopCatalogItem.NewPrice;
Quantity = shopCatalogItem.Quantity;
}
}
}