コード例 #1
0
ファイル: Notification.cs プロジェクト: aghilazghi/DevTeamup
        public static Notification TeamupModified(Teamup newTeamup, DateTime originalDateTime, string originalAddress)
        {
            var notification = new Notification(newTeamup, NotificationType.TeamupUpdated)
            {
                OriginalDateTime = originalDateTime,
                OriginalAddress  = originalAddress
            };

            return(notification);
        }
コード例 #2
0
ファイル: Notification.cs プロジェクト: aghilazghi/DevTeamup
        private Notification(Teamup teamup, NotificationType notificationType)
        {
            if (teamup == null)
            {
                throw new ArgumentNullException(nameof(teamup));
            }

            Teamup           = teamup;
            NotificationType = notificationType;
            DateTime         = DateTime.Now;
        }
コード例 #3
0
ファイル: Notification.cs プロジェクト: aghilazghi/DevTeamup
 public static Notification TeamupCanceled(Teamup teamup)
 {
     return(new Notification(teamup, NotificationType.TeamupCanceled));
 }