public ApiResponseList(XmlNode node) : this(node.Name) { XmlNode childNode = node.FirstChild; while (childNode != null) { list.Add(ApiResponseFactory.GetResponse(childNode)); childNode = childNode.NextSibling; } }
public ApiResponseSet(XmlNode node) { this.Name = node.Name; XmlNode childNode = node.FirstChild; this.dictionary = new Dictionary <string, string>(); while (childNode != null) { ApiResponseElement apiResponseElement = (ApiResponseElement)ApiResponseFactory.GetResponse(childNode); this.dictionary.Add(apiResponseElement.Name, apiResponseElement.Value); childNode = childNode.NextSibling; } }
public ApiResponseSet(XmlNode node) { ((IApiResponse)this).Name = node.Name; var childNode = node.FirstChild; Dictionary = new Dictionary <string, string>(); while (childNode != null) { var apiResponseElement = (ApiResponseElement)ApiResponseFactory.GetResponse(childNode); Dictionary.Add(((IApiResponse)apiResponseElement).Name, apiResponseElement.Value); childNode = childNode.NextSibling; } }
public IApiResponse CallApi(string component, string operationType, string operationName, Dictionary <string, string> parameters) { XmlDocument xmlDocument = this.CallApiRaw(component, operationType, operationName, parameters); return(ApiResponseFactory.GetResponse(xmlDocument.ChildNodes[1])); }