public AmazonSESComplaintNotification(string notification)
        {
            AmazonSESNotification amazonSESNotification = null;

            if (TryParse(notification, out amazonSESNotification))
            {
                var amazonSESComplaintNotification = amazonSESNotification as AmazonSESComplaintNotification;
                Mail             = amazonSESComplaintNotification.Mail;
                NotificationType = amazonSESComplaintNotification.NotificationType;
                Complaint        = amazonSESComplaintNotification.Complaint;
            }
        }
Пример #2
0
        public AmazonSESDeliveryNotification(string notification)
        {
            AmazonSESNotification amazonSESNotification = null;

            if (TryParse(notification, out amazonSESNotification))
            {
                var amazonSESDeliveryNotification = amazonSESNotification as AmazonSESDeliveryNotification;
                Mail             = amazonSESDeliveryNotification.Mail;
                NotificationType = amazonSESDeliveryNotification.NotificationType;
                Delivery         = amazonSESDeliveryNotification.Delivery;
            }
        }
Пример #3
0
        public AmazonSESBounceNotification(string notification)
        {
            AmazonSESNotification amazonSESNotification = null;

            if (TryParse(notification, out amazonSESNotification))
            {
                var amazonSESBounceNotification = amazonSESNotification as AmazonSESBounceNotification;
                Mail             = amazonSESBounceNotification.Mail;
                NotificationType = amazonSESBounceNotification.NotificationType;
                Bounce           = amazonSESBounceNotification.Bounce;
            }
        }
 public new static bool TryParse(string notification, out AmazonSESNotification amazonSESNotification)
 {
     return(ParseTool.TryParseAmazonSESNotification(notification, out amazonSESNotification, typeof(AmazonSESComplaintNotification)));
 }
 public static bool TryParse(string notification, out AmazonSESNotification amazonSESNotification)
 {
     return(ParseTool.TryParseAmazonSESNotification(notification, out amazonSESNotification));
 }