Inheritance: IParseble
Exemple #1
0
        public IParseble Parse(JSONNode textAllNode)
        {
            IEnumerator <JSONNode> errorEnumerator = textAllNode ["error"].Childs.GetEnumerator();

            errors = new List <XsollaError> ();
            while (errorEnumerator.MoveNext())
            {
                XsollaError currentError = new XsollaError();
                currentError.Parse(errorEnumerator.Current);
                errors.Add(currentError);
            }

            IEnumerator <JSONNode> infoEnumerator = textAllNode ["info"].Childs.GetEnumerator();

            info = new List <XsollaInfo> ();
            while (infoEnumerator.MoveNext())
            {
                XsollaInfo currentInfo = new XsollaInfo();
                currentInfo.Parse(infoEnumerator.Current);
                info.Add(currentInfo);
            }
            return(this);
        }
        public IParseble Parse(JSONNode textAllNode)
        {
            IEnumerator<JSONNode> errorEnumerator = textAllNode ["error"].Childs.GetEnumerator ();
            errors = new List<XsollaError> ();
            while (errorEnumerator.MoveNext()) {
                XsollaError currentError = new XsollaError();
                currentError.Parse(errorEnumerator.Current);
                errors.Add(currentError);
            }

            IEnumerator<JSONNode> infoEnumerator = textAllNode ["info"].Childs.GetEnumerator ();
            info = new List<XsollaInfo> ();
            while (infoEnumerator.MoveNext()) {
                XsollaInfo currentInfo = new XsollaInfo();
                currentInfo.Parse(infoEnumerator.Current);
                info.Add(currentInfo);
            }
            return this;
        }