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