Exemplo n.º 1
0
        /// <summary>
        /// Private function to get data from the server
        /// </summary>
        /// <param name="url">Url to call</param>
        /// <returns>True if success</returns>
        private bool processUrl(string url)
        {
            if (url.Trim().Length == 0)
            {
                return(false);
            }

            var res = StringHelper.getJsonAsDictionary(getUrl(url));

            if (res == null)
            {
                return(false);
            }

            MetaData  = (Dictionary <string, object>)res["meta"];
            ArrayData = (ArrayList)res["data"];
            Reset();
            arrEnum = ArrayData.GetEnumerator();
            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the enumerator for the object
 /// </summary>
 /// <returns>IEnumerator for the array</returns>
 public IEnumerator GetEnumerator()
 {
     arrEnum = ArrayData.GetEnumerator();
     return(this);
 }