예제 #1
0
 public static Notification  GigCreated(Gig gig)
 {
     return(new Notification(NotificationType.GigCreated, gig));
 }
예제 #2
0
 public static Notification GigCancel(Gig gig)
 {
     return(new Notification(NotificationType.GigCanceled, gig));
 }
예제 #3
0
 private Notification(NotificationType type, Gig gig)
 {
     Type     = type;
     Gig      = gig ?? throw new ArgumentNullException("Gig");
     DateTime = DateTime.Now;
 }