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; }
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); }