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)); }
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(); }
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) { }
public NotificationReceiver(NotificationId notificationId, UserId receiverId, DateTime dateRead) { NotificationId = notificationId; ReceiverId = receiverId; DateRead = dateRead; }
public NotificationReceiver(NotificationReceiverData data) { NotificationId = new NotificationId(data.Id); ReceiverId = new UserId(data.ReceiverId); DateRead = data.DateRead; }