Example #1
0
 /// <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));
 }
Example #2
0
 private Notification(NotificationType type, Gig gig)
 {
     Type     = type;
     Gig      = gig ?? throw new ArgumentNullException("gig");
     DateTime = DateTime.Now;
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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);
        }
Example #6
0
 /// <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)
 {
 }
Example #8
0
 public void NotAttending(Gig gig)
 {
     Gigs.Remove(gig);
 }
Example #9
0
 private Notification(Gig gig, NotificationType type)
 {
     Gig              = gig ?? throw new ArgumentException("Gig cannot be null.");
     DateTime         = DateTime.Now;
     NotificationType = type;
 }
Example #10
0
 public static Notification GigCreated(Gig gig)
 {
     return(new Notification(NotificationType.GigUpdated, gig));
 }
Example #11
0
 public static Notification GigReopen(Gig gig)
 {
     return(new Notification(NotificationType.GigReopened, gig));
 }
Example #12
0
 public static Notification GigAdded(Gig gig)
 {
     return(new Notification(gig, NotificationType.addGig));
 }
Example #13
0
 public void Attending(Gig gig)
 {
     Gigs.Add(gig);
 }
Example #14
0
 public static Notification GigCanceled(Gig gig)
 {
     return(new Notification(NotificationType.GigCanceled, gig));
 }
 public static Notification NewGigCancelledNotification(Gig gig)
 {
     return(new Notification(gig, NotificationType.GigCancelled));
 }
Example #16
0
 public static Notification GigsCanceled(Gig gig)
 {
     return(new Notification(gig, NotificationType.GigCanceled));
 }
Example #17
0
 public static Notification GigUpdated(Gig newGig, string newVenue, DateTime newDateTime)
 {
     return(new Notification(newGig, NotificationType.GigUpdated, newVenue, newDateTime));
 }