Пример #1
0
        public static Notification MahfilUpdated(Congregration newCongregration, DateTime originalDateTime, string originalVenue)
        {
            var notification = new Notification(NotificationType.MahfilUpdated, newCongregration);

            notification.OriginalDateTime = originalDateTime;
            notification.OriginalVenue    = originalVenue;
            return(notification);
        }
Пример #2
0
 private Notification(NotificationType type, Congregration congregration)
 {
     if (congregration == null)
     {
         throw new ArgumentNullException("congregration");
     }
     Type          = type;
     Congregration = congregration;
     DateTime      = DateTime.Now;
     Id            = Guid.NewGuid().ToString();
 }
Пример #3
0
 public static Notification MahfilCanceled(Congregration congregration)
 {
     return(new Notification(NotificationType.MahfilCanceled, congregration));
 }