Ejemplo n.º 1
0
        public IEnumerator Query <T>(TableQuery query, Action <IRestResponse <T[]> > callback = null) where T : new()
        {
            string      url     = TableQueryUrl(_name, query.ToString());
            ZumoRequest request = new ZumoRequest(url, Method.GET, true, _client.User);

            Debug.Log("Query Request: " + url + " Query:" + query);
            yield return(request.Request.Send());

            request.ParseJsonArray <T>(callback);
        }
Ejemplo n.º 2
0
        public IEnumerator Read <T>(Action <IRestResponse <T[]> > callback = null) where T : new()
        {
            string      url     = TableUrl(_name);
            ZumoRequest request = new ZumoRequest(url, Method.GET, true, _client.User);

            Debug.Log("Read Request: " + url);
            yield return(request.Request.Send());

            request.ParseJsonArray <T>(callback);
        }