Exemplo 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);
        }
Exemplo n.º 2
0
        private Notification(Teamup teamup, NotificationType notificationType)
        {
            if (teamup == null)
            {
                throw new ArgumentNullException(nameof(teamup));
            }

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