예제 #1
0
 public Notification(NotificationId notificationId, int notificationType, string subject, string content, string referenceId, DateTime dateSent,
                     DateTime dateCreated, DateTime dateUpdated, DateTime dateEnabled, DateTime dateDeleted)
     : base(dateCreated, dateUpdated, dateEnabled, dateDeleted)
 {
     Apply(new NotificationCreated(notificationId, notificationType, subject, content,
                                   referenceId, dateSent));
 }
예제 #2
0
        public Notification(NotificationData data)
            : base(data.DateCreated, data.DateUpdated, data.DateEnabled, data.DateDeleted)
        {
            NotificationId   = new NotificationId(data.Id);
            NotificationType = data.NotificationType;
            Subject          = data.Subject;
            Content          = data.Content;
            ReferenceId      = data.ReferenceId;
            DateSent         = data.DateSent;

            Receivers = data.Receivers.Select(p => new NotificationReceiver(p)).ToList();
        }
예제 #3
0
 public Notification(NotificationId notificationId, int notificationType, string subject, string content, string referenceId, DateTime dateSent)
     : this(notificationId, notificationType, subject, content, referenceId, dateSent,
            DateTime.UtcNow, DateTime.UtcNow, DateTime.MaxValue, DateTime.MaxValue)
 {
 }
예제 #4
0
 public NotificationReceiver(NotificationId notificationId, UserId receiverId, DateTime dateRead)
 {
     NotificationId = notificationId;
     ReceiverId     = receiverId;
     DateRead       = dateRead;
 }
예제 #5
0
 public NotificationReceiver(NotificationReceiverData data)
 {
     NotificationId = new NotificationId(data.Id);
     ReceiverId     = new UserId(data.ReceiverId);
     DateRead       = data.DateRead;
 }