Esempio n. 1
0
 /// <summary>
 ///     获取所有的学校列表
 /// </summary>
 /// <param name="province">省份范围,省份ID。</param>
 /// <param name="city">城市范围,城市ID。</param>
 /// <param name="area">区域范围,区ID。</param>
 /// <param name="type">学校类型,1:大学、2:高中、3:中专技校、4:初中、5:小学,默认为1。</param>
 /// <param name="capital">学校首字母,默认为A。 </param>
 /// <param name="keyword">学校名称关键字。</param>
 /// <param name="count">返回的记录条数,默认为10。</param>
 /// <returns>JSON</returns>
 public IEnumerable <SchoolEntity> SchoolList(string province = "", string city     = "", string area    = "",
                                              string type     = "1", string capital = "", string keyword = "",
                                              int count       = 10)
 {
     return
         (JsonConvert.DeserializeObject <IEnumerable <SchoolEntity> >(api.SchoolList(province, city, area, type,
                                                                                     capital, keyword, count)));
 }
Esempio n. 2
0
 /// <summary>
 /// 获取所有的学校列表
 /// </summary>
 /// <param name="province">省份范围,省份ID。</param>
 /// <param name="city">城市范围,城市ID。</param>
 /// <param name="area">区域范围,区ID。</param>
 /// <param name="type">学校类型,1:大学、2:高中、3:中专技校、4:初中、5:小学,默认为1。</param>
 /// <param name="capital">学校首字母,默认为A。 </param>
 /// <param name="keyword">学校名称关键字。</param>
 /// <param name="count">返回的记录条数,默认为10。</param>
 /// <returns>JSON</returns>
 public dynamic SchoolList(string province = "", string city = "", string area = "", string type = "1", string capital = "", string keyword = "", int count = 10)
 {
     return(DynamicJson.Parse(api.SchoolList(province, city, area, type, capital, keyword, count)));
 }