public override void OnDeliveryFailure(NotificationArgs args) { WriteLine(string.Format("**Delivery Error: {0}", args.Recipient)); WriteIndented(string.Format("Reference: {0}", args.ProviderReference)); WriteIndented(string.Format("Error: {0} - {1}", args.NotificationCode, args.NotificationMessage)); }
public override void OnDeliveryStatusUpdate(NotificationArgs args) { WriteLine(string.Format("Status update: {0}", args.Recipient)); WriteIndented(string.Format("Reference: {0}", args.ProviderReference)); WriteIndented(string.Format("Notification: {0} - {1}", args.NotificationCode, args.NotificationMessage)); }
public void DeliveryNotification(NotificationArgs args) { NotifyDelivery(args); }
public override void OnDelivery(NotificationArgs args) { WriteLine(string.Format("Delivery Confirmation: {0}", args.Recipient)); WriteIndented(string.Format("Reference: {0}", args.ProviderReference)); }
public void ErrorNotification(NotificationArgs args) { NotifyDeliveryFailure(args); }
public void StatusNotification(NotificationArgs args) { NotifyDeliveryStatusUpdate(args); }
public override void OnDeliveryStatusUpdate(NotificationArgs args) { SmsLogDataContext.DeliveryStatusUpdate(args.ProviderReference, args.Recipient, args.NotifiedOn, args.NotificationCode, args.NotificationMessage); }
public override void OnDelivery(NotificationArgs args) { SmsLogDataContext.DeliveryConfirmation(args.ProviderReference, args.Recipient, args.NotifiedOn, args.NotificationCode); }
protected void NotifyDeliveryStatusUpdate(NotificationArgs args) { if (OnDeliveryStatusUpdate != null) OnDeliveryStatusUpdate(args); }
protected void NotifyDeliveryFailure(NotificationArgs args) { if (OnDeliveryFailure != null) OnDeliveryFailure(args); }
protected void NotifyDelivery(NotificationArgs args) { if (OnDelivery != null) OnDelivery(args); }