using Newtonsoft.Json;
using Nop.Plugin.Misc.AuctionPlugin.Domains.Dtos;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;
using Nop.Web.Models.Catalog;

namespace Nop.Plugin.Misc.AuctionPlugin.Models
{
    public record LiveScreenViewModel : BaseNopModel
    {
        public AuctionDto AuctionDto { get; set; }
        public ProductToAuctionDto CurrentProductToAuction { get; set; }

        public ProductDetailsModel ActiveProductDetails { get; set; }

        public bool IsAnyItemActive { get; set; }
        public int ActiveProductId { get; set; }

        public int AuctionId { get; set; }
        public int ActiveProductToAuctionId { get; set; }
        public bool IsAdmin { get; set; }
        public bool IsGuest { get; set; }       

        public decimal? BasePrice { get; set; }
     
        public decimal LicitStep { get; set; }
        public decimal? CurrentPrice { get; set; }
        public int UserCustomerId { get; set; }



        public LiveScreenViewModel() { }

        public LiveScreenViewModel(AuctionDto auctionDto) : this()
        {
            AuctionDto = auctionDto;   
        }


    }
}
