/// <summary> /// /// </summary> /// <param name="gig"></param> /// <param name="originalDateTime"></param> /// <param name="originalVenue"></param> /// <returns></returns> public static Notification GigUpdated(Gig gig, DateTime originalDateTime, string originalVenue) { return(new Notification(gig, NotificationType.GigUpdated, originalDateTime, originalVenue)); }
private Notification(NotificationType type, Gig gig) { Type = type; Gig = gig ?? throw new ArgumentNullException("gig"); DateTime = DateTime.Now; }
/// <summary> /// /// </summary> /// <param name="gig"></param> /// <param name="type"></param> /// <param name="originalDateTime"></param> /// <param name="originalVenue"></param> private Notification(Gig gig, NotificationType type, DateTime originalDateTime, string originalVenue) : this(gig, type) { OriginalDateTime = originalDateTime; OriginalVenue = originalVenue; }
/// <summary> /// /// </summary> /// <param name="gig"></param> /// <returns></returns> public static Notification GigCreated(Gig gig) { return(new Notification(gig, NotificationType.GigCreated)); }
public static Notification GigCanceled(Gig gig) { var notification = new Notification(gig, NotificationType.GigCanceled); return(notification); }
/// <summary> /// /// </summary> /// <param name="gig"></param> /// <param name="type"></param> private Notification(Gig gig, NotificationType type) { Gig = gig ?? throw new ArgumentNullException("Gig"); Type = type; DateTime = DateTime.Now; }
public Notification(Gig gig, NotificationType notificationType) : this(gig, notificationType, null, null) { }
public void NotAttending(Gig gig) { Gigs.Remove(gig); }
private Notification(Gig gig, NotificationType type) { Gig = gig ?? throw new ArgumentException("Gig cannot be null."); DateTime = DateTime.Now; NotificationType = type; }
public static Notification GigCreated(Gig gig) { return(new Notification(NotificationType.GigUpdated, gig)); }
public static Notification GigReopen(Gig gig) { return(new Notification(NotificationType.GigReopened, gig)); }
public static Notification GigAdded(Gig gig) { return(new Notification(gig, NotificationType.addGig)); }
public void Attending(Gig gig) { Gigs.Add(gig); }
public static Notification GigCanceled(Gig gig) { return(new Notification(NotificationType.GigCanceled, gig)); }
public static Notification NewGigCancelledNotification(Gig gig) { return(new Notification(gig, NotificationType.GigCancelled)); }
public static Notification GigsCanceled(Gig gig) { return(new Notification(gig, NotificationType.GigCanceled)); }
public static Notification GigUpdated(Gig newGig, string newVenue, DateTime newDateTime) { return(new Notification(newGig, NotificationType.GigUpdated, newVenue, newDateTime)); }