using System; using System.ComponentModel; namespace Massmailer.Shared.Model { public class MassmailerRecipient : INotifyPropertyChanged { private string address; private bool isSent; private DateTime sentDate; public string Address { get { return this.address; } set { this.address = value; this.PropertyChanged(this, new PropertyChangedEventArgs(nameof(this.Address))); } } public bool IsSent { get { return this.isSent; } set { this.isSent = value; this.PropertyChanged(this, new PropertyChangedEventArgs(nameof(this.IsSent))); } } public DateTime SentDate { get { return this.sentDate; } set { this.sentDate = value; this.PropertyChanged(this, new PropertyChangedEventArgs(nameof(this.SentDate))); } } public event PropertyChangedEventHandler PropertyChanged; } }