Exemplo n.º 1
0
 /**
  * @param content
  * @return 高尔夫大师***全部数据
  */
 public static List<VideoBean> parseInfo(String content) {
   List<VideoBean> dates = new ArrayList<VideoBean>();
   try {
     JSONObject jsonobject = new JSONObject(content);
     JSONArray ja = new JSONArray(jsonobject.getString("data"));
     for (int i = 0; i < ja.length(); i++) {
       VideoBean vipRoomBean = new VideoBean();
       vipRoomBean.picUrl = ja.getJSONObject(i).getString("picUrl");
       vipRoomBean.introduce = ja.getJSONObject(i).getString("introduce");
       vipRoomBean.id = ja.getJSONObject(i).getInt("id");
       vipRoomBean.title = ja.getJSONObject(i).getString("title");
       dates.add(vipRoomBean);
     }
     return dates;
   } catch (JSONException e) {
     e.printStackTrace();
   }
   return dates;
 }