Beispiel #1
0
 public static Notification GigCanceled(Gig gig) => new Notification(NotificationType.GigCanceled, gig);
Beispiel #2
0
        //private NotificationType gigCanceled;

        private Notification(NotificationType type, Gig gig)
        {
            Gig       = gig ?? throw new ArgumentException("Gig cannot be null");
            this.Type = type;
            DateTime  = DateTime.Now;
        }