public void FromModifiedXml(ModifiedXmlDocument doc, string path) { Result = doc.GetStringFromXml(path + "XML/REQUEST/RESPONSE/RESULT"); Meta.FromModifiedXml(doc, path + "XML/REQUEST/RESPONSE"); Errors.Clear(); foreach (var node in doc.GetNodes(path + "XML/REQUEST/RESPONSE/ERROR")) { var row = new ErrorRow(); row.FromModifiedXml(node, string.Empty); Errors.Add(row); } }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { Result = doc.GetStringFromXml(path + "/RESULT"); Meta = new ResponseMeta(); Meta.FromModifiedXml(doc, path); PaymentProducts = new List <PaymentProductData>(); var nodes = doc.GetNodes(path + "/ROW"); foreach (var node in nodes) { var data = new PaymentProductData(); data.FromModifiedXml(node, string.Empty); PaymentProducts.Add(data); } }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { StatusDate = doc.GetStringFromXml(path + "/STATUSDATE"); PaymentMethodId = doc.GetIntFromXml(path + "/PAYMENTMETHODID"); OrderId = doc.GetLongFromXml(path + "/ORDERID"); EffortId = doc.GetIntFromXml(path + "/EFFORTID"); AttemptId = doc.GetIntFromXml(path + "/ATTEMPTID"); MerchantId = doc.GetIntFromXml(path + "/MERCHANTID"); StatusId = doc.GetIntFromXml(path + "/STATUSID"); Errors.Clear(); foreach (var node in doc.GetNodes(path + "/ERRORS/ERROR")) { var row = new StatusErrorRow(); row.FromModifiedXml(node, string.Empty); Errors.Add(row); } }