Exemplo n.º 1
0
        public ApiResponseList(XmlNode node)
            :
            this(node.Name)
        {
            XmlNode childNode = node.FirstChild;

            while (childNode != null)
            {
                list.Add(ApiResponseFactory.GetResponse(childNode));
                childNode = childNode.NextSibling;
            }
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
        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]));
        }