using ReactiveUI; namespace PcgsInvUi.Models; public class Coin : ReactiveObject { public string PCGSNo { get => _pcgsNo; set => this.RaiseAndSetIfChanged(ref _pcgsNo, value); } private string _pcgsNo; public string Name { get => _name; set => this.RaiseAndSetIfChanged(ref _name, value); } private string _name; public int Year { get => _year; set => this.RaiseAndSetIfChanged(ref _year, value); } private int _year; public string Denomination { get => _denomination; set => this.RaiseAndSetIfChanged(ref _denomination, value); } private string _denomination; public string MintMark { get => _mintMark; set => this.RaiseAndSetIfChanged(ref _mintMark, value); } private string _mintMark; public string Grade { get => _grade; set => this.RaiseAndSetIfChanged(ref _grade, value); } private string _grade; public double PriceGuideValue { get => _priceGuideValue; set { TotalPrice = value * Quantity; this.RaiseAndSetIfChanged(ref _priceGuideValue, value); } } private double _priceGuideValue; public string CoinFactsLink { get => _coinFactsLink; set => this.RaiseAndSetIfChanged(ref _coinFactsLink, value); } private string _coinFactsLink; public string MajorVariety { get => _majorVariety; set => this.RaiseAndSetIfChanged(ref _majorVariety, value); } private string _majorVariety; public string MinorVariety { get => _minorVariety; set => this.RaiseAndSetIfChanged(ref _minorVariety, value); } private string _minorVariety; public string DieVariety { get => _dieVariety; set => this.RaiseAndSetIfChanged(ref _dieVariety, value); } private string _dieVariety; public string SeriesName { get => _seriesName; set => this.RaiseAndSetIfChanged(ref _seriesName, value); } private string _seriesName; public string Category { get => _category; set => this.RaiseAndSetIfChanged(ref _category, value); } private string _category; public string Designation { get => _designation; set => this.RaiseAndSetIfChanged(ref _designation, value); } private string _designation; public int CertificateNumber { get => _certificateNumber; set => this.RaiseAndSetIfChanged(ref _certificateNumber, value); } private int _certificateNumber; public int Quantity { get => _quantity; set { TotalPrice = value * PriceGuideValue; this.RaiseAndSetIfChanged(ref _quantity, value); } } private int _quantity; public double TotalPrice { get => _totalPrice; set => this.RaiseAndSetIfChanged(ref _totalPrice, value); } private double _totalPrice; public double PaidFor { get => _paidFor; set => this.RaiseAndSetIfChanged(ref _paidFor, value); } private double _paidFor; public string Notes { get => _notes; set => this.RaiseAndSetIfChanged(ref _notes, value); } private string _notes; public Coin() { PCGSNo = ""; Name = ""; Year = 0; Denomination = ""; MintMark = ""; Grade = ""; PriceGuideValue = 0; CoinFactsLink = ""; MajorVariety = ""; MinorVariety = ""; DieVariety = ""; SeriesName = ""; Category = ""; Designation = ""; CertificateNumber = 0; Quantity = 0; PaidFor = 0; Notes = ""; } }