示例#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));
 }