Esempio n. 1
0
        public static Notification TeamupModified(Teamup newTeamup, DateTime originalDateTime, string originalAddress)
        {
            var notification = new Notification(newTeamup, NotificationType.TeamupUpdated)
            {
                OriginalDateTime = originalDateTime,
                OriginalAddress  = originalAddress
            };

            return(notification);
        }
Esempio n. 2
0
        private Notification(Teamup teamup, NotificationType notificationType)
        {
            if (teamup == null)
            {
                throw new ArgumentNullException(nameof(teamup));
            }

            Teamup           = teamup;
            NotificationType = notificationType;
            DateTime         = DateTime.Now;
        }
Esempio n. 3
0
 public static Notification TeamupCanceled(Teamup teamup)
 {
     return(new Notification(teamup, NotificationType.TeamupCanceled));
 }