// Smart_Post private static NameValueCollection ShowNotifications(SmartPostCloseReply reply, out string resultMessage) { NameValueCollection nvNotification = new NameValueCollection(); resultMessage = string.Empty; try { if (reply.Notifications[0] != null) { Notification notification = reply.Notifications[0]; nvNotification.Add("Code", Basic.IsNull(notification.Code, "")); nvNotification.Add("Message", Basic.IsNull(notification.Message, "")); nvNotification.Add("Severity", Basic.IsNull(notification.Severity, "")); //ERROR,FAILURE,NOTE,SUCCESS,WARNING nvNotification.Add("Source", Basic.IsNull(notification.Source, "")); } else { resultMessage = "[Notifications] reply.Notifications[0] is null."; } } catch (Exception ex) { resultMessage = "[Error ShowNotifications] " + ex.Message; } return(nvNotification); }
private static CloseShipmentResponse ShowSmartPostCloseReply(SmartPostCloseReply reply, CloseShipmentResponse shipResponse) { System.Diagnostics.Debug.WriteLine("SmartPost Close Reply details:"); System.Diagnostics.Debug.WriteLine("SmartPost Close was processed."); return(shipResponse); }