示例#1
0
        public ResultList GSbuildQuery(Query query)
        {

            GSQueryURLBuilder QB = new GSQueryURLBuilder();
            String URL = QB.buildQuery(query);
            this.query = query;

            var strUrl = new Uri(URL);



            int i;


            for (i = 0; i < 50; i += 10)
            {
                Result result = new Result();

                String newURL;
                newURL = strUrl + "&start=" + i.ToString();
                var newUrl = new Uri(newURL);
                Console.WriteLine(newUrl);
                result = GSConnect(newUrl);
                if (result != null)
                    this.resultList.Add(result);
                else
                    return null;

            }

            checkProfile(strUrl);

            return this.resultList;



        }
示例#2
0
        public ResultList GSbuildQuery(Query query)
        {
            GSQueryURLBuilder QB  = new GSQueryURLBuilder();
            String            URL = QB.buildQuery(query);

            this.query = query;

            var strUrl = new Uri(URL);



            int i;


            for (i = 0; i < 50; i += 10)
            {
                Result result = new Result();

                String newURL;
                newURL = strUrl + "&start=" + i.ToString();
                var newUrl = new Uri(newURL);
                Console.WriteLine(newUrl);
                result = GSConnect(newUrl);
                if (result != null)
                {
                    this.resultList.Add(result);
                }
                else
                {
                    return(null);
                }
            }

            checkProfile(strUrl);

            return(this.resultList);
        }