예제 #1
0
 public static IEnumerable<WePoiBaseInfo> PoiListQuery(int beg, int limit)
 {
     string url = WeUtil.GetUrl(WeCardConst.GET_POI_LIST);
     WePoiQuery query = new WePoiQuery(beg, limit);
     var result = WeUtil.PostDataToUri(url, query.WriteJson(), new WePoiInfoList());
     List<WePoiBaseInfo> poiList = new List<WePoiBaseInfo>();
     foreach (var re in result.BusinessList)
     {
         poiList.Add(re.BaseInfo);
     }
     return poiList;
 }
예제 #2
0
        public static IEnumerable <WePoiBaseInfo> PoiListQuery(int beg, int limit)
        {
            string               url     = WeUtil.GetUrl(WeCardConst.GET_POI_LIST);
            WePoiQuery           query   = new WePoiQuery(beg, limit);
            var                  result  = WeUtil.PostDataToUri(url, query.WriteJson(), new WePoiInfoList());
            List <WePoiBaseInfo> poiList = new List <WePoiBaseInfo>();

            foreach (var re in result.BusinessList)
            {
                poiList.Add(re.BaseInfo);
            }
            return(poiList);
        }