

using Core.DomainObjects.PageSections;
using WeatherForecast.Models.Abstractions;

namespace WeatherForecast.Models.PageSections {

  /// <summary>
  /// 
  /// </summary>
  public class CartProductsSectionModel : PageSectionModelBase<ProductsSection> {

    /// <summary>
    /// 
    /// </summary>
    public string Product { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string Price { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string Quantity { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string Subtotal { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public LinkModel ContinueShopping { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public LinkModel Checkout { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="productsSection"></param>
    public CartProductsSectionModel(ProductsSection productsSection) : base(productsSection) {
      Product = productsSection.Product;
      Price = productsSection.Price;
      Quantity = productsSection.Quantity;
      Subtotal = productsSection.Subtotal;
      ContinueShopping = new LinkModel(productsSection.ContinueShopping);
      Checkout = new LinkModel(productsSection.Checkout);
    }
  }
}
