public void StartReply(Notification notification)
 {
     this.OrderId = notification.OrderId;
     this.Order = notification.Order;
     this.ToUserProfileId = notification.FromUserProfileId;
     this.Subject = "Re: " + notification.Subject;
     this.Importance = notification.Importance;
     this.Message = "\n\n\n\n"
         + "---Original Message---\n"
         + "  -Date: " + notification.CreateDateTimeUtc.ToLocalTime() + "\n"
         + "  -From: " + notification.From + "\n"
         + "  -To: " + notification.To + "\n"
         + "  -Subject: " + notification.To + "\n\n"
         + notification.Message;
 }
Ejemplo n.º 2
0
 public static void SetDefaultsForNew(this NotificationLink link, Notification notification)
 {
     link.Notification = notification;
     link.IsPending = false;
     link.StartDateTimeUtc = DateTime.UtcNow.AddMinutes(-1);
     link.EndDateTimeUtc = DateTime.UtcNow.AddYears(100);
     link.Client = notification.Client;
     link.ClientId = notification.ClientId;
     link.StoreFront = notification.StoreFront;
     link.StoreFrontId = notification.StoreFrontId;
     link.Order = 1;
 }