Gson解析

MainActivity

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.google.gson.Gson;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        String json="{\"status\":\"ok\",\"paramz\":{\"feeds\":[{\"id\":299063,\"oid\":288331,\"category\":\"article\",\"data\":{\"subject\":\"上海男子称劝架被戳瞎眼寻证人\",\"summary\":\"近日,上海地铁世纪大道站出站口贴出一张“寻找目击证人”的告示。\",\"cover\":\"/Attachs/Article/288331/2a6dd034cca6434b9eae169c96d5c267_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 19:42:25\"}},{\"id\":299038,\"oid\":288315,\"category\":\"article\",\"data\":{\"subject\":\"福建一干部驾车连撞3人后逃逸\",\"summary\":\"华安县一名党政干部在驾车连撞3人后逃逸,事发6小时后才向警方投案自首。\",\"cover\":\"/Attachs/Article/288315/b6e86bb108c84332821263bc93369abf_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 18:03:06\"}},{\"id\":299036,\"oid\":288313,\"category\":\"article\",\"data\":{\"subject\":\"中学防空演练致学生住院\",\"summary\":\"截至目前,仍有学生住院治疗,部分吸入烟尘较少的、反应较轻的学生已经出院。\",\"cover\":\"/Attachs/Article/288313/59232ee8363d440592d71bb61aa31cef_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 19:09:51\"}},{\"id\":299035,\"oid\":288312,\"category\":\"article\",\"data\":{\"subject\":\"惯偷被抓后自称刘谦高徒\",\"summary\":\"惯偷蒙某以草帽当掩护,从轮渡“转战”到南普陀,专找游客下手。\",\"cover\":\"/Attachs/Article/288312/28ce42849c0c47d48ae646912e2b20bb_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:51:14\"}},{\"id\":299033,\"oid\":288311,\"category\":\"article\",\"data\":{\"subject\":\"男子偷拍被罚赔款 报警求退款\",\"summary\":\"经过近2个小时的调解和教育,该男子再次向女大学生道歉。\",\"cover\":\"/Attachs/Article/288311/f756bcd84b674ce1bb10a9e10145a680_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:47:18\"}},{\"id\":299027,\"oid\":288309,\"category\":\"article\",\"data\":{\"subject\":\"台北老夫妇花60万买墓地不能用\",\"summary\":\"去年老先生因病过世,在下葬前,突然发现这块墓地属于农牧用地,没办法下葬。\",\"cover\":\"/Attachs/Article/288309/cbcb37310f0c450f964f41aac1279935_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:37:41\"}},{\"id\":299008,\"oid\":288298,\"category\":\"article\",\"data\":{\"subject\":\"宁波集体婚礼地铁当“婚车”\",\"summary\":\"19日,宁波轨道交通2号线一期即将试运营之际,一场特别的公益集体婚礼举行\",\"cover\":\"/Attachs/Article/288298/e108df21cb75452890f1a608b1c5181d_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:13:25\"}},{\"id\":299005,\"oid\":288294,\"category\":\"article\",\"data\":{\"subject\":\"4女子离家房子被倒卖蜗居楼道\",\"summary\":\"北京市公安局朝阳分局经侦大队已受理崔文花的报案,目前该案正在调查中。\",\"cover\":\"/Attachs/Article/288294/cee8182e731a4240816e62c162a30a91_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:48:19\"}},{\"id\":299003,\"oid\":288292,\"category\":\"article\",\"data\":{\"subject\":\"纽约女子产极低概率同卵三胞胎\",\"summary\":\"据称,自然受孕并产下同卵三胞胎的概率小到百万分之一。\",\"cover\":\"/Attachs/Article/288292/c3456fe5f50a4f44910c3b41479d909e_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 17:00:43\"}},{\"id\":298999,\"oid\":288288,\"category\":\"article\",\"data\":{\"subject\":\"大妈火车上脱鞋引发互殴\",\"summary\":\"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方竟然大打出手。\",\"cover\":\"/Attachs/Article/288288/61ce514a12ab4782936bea0a4abecee1_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 16:55:41\"}},{\"id\":298998,\"oid\":288287,\"category\":\"article\",\"data\":{\"subject\":\"上海男子街头持刀砍伤4名路人\",\"summary\":\"据网友爆料称,浦东张江一男子持刀伤人,4人被砍伤送医救治。\",\"cover\":\"/Attachs/Article/288287/6e74c69a400d4055b6f9070bf229b5f5_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 16:50:33\"}},{\"id\":298997,\"oid\":288286,\"category\":\"article\",\"data\":{\"subject\":\"男子盗窃后\\\"监视\\\"警察破案被抓\",\"summary\":\"接到客栈报案后,邛崃刑侦大队刑警迅速赶到现场。\",\"cover\":\"/Attachs/Article/288286/b62950e9aff64bc7972fbbcf25ca1ce4_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 16:46:59\"}},{\"id\":298996,\"oid\":288285,\"category\":\"article\",\"data\":{\"subject\":\"南京一男子闹市仿杰克逊热舞\",\"summary\":\"据围观市民反映,该男子曾在其他地段有过同样举动,疑似患有精神疾病。\",\"cover\":\"/Attachs/Article/288285/760f5a4e8a3a4cb997be165361f40fbf_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 16:41:41\"}},{\"id\":298989,\"oid\":288274,\"category\":\"article\",\"data\":{\"subject\":\"城管协管员喷水驱赶乞讨老人\",\"summary\":\"相关部门就此解释,城管协管员是不得以才出此下策。\",\"cover\":\"/Attachs/Article/288274/77e034fbd53148c8b0024dce2fd74a3f_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 16:03:12\"}},{\"id\":298987,\"oid\":288273,\"category\":\"article\",\"data\":{\"subject\":\"哲学硕士网恋被假女友骗70万\",\"summary\":\"其实“她”只是个小学文化的男人,一人饰四角,把重点大学硕士骗得团团转。\",\"cover\":\"/Attachs/Article/288273/776da3e2b8084fb7804b7da1b48e8703_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 15:57:30\"}},{\"id\":298963,\"oid\":288260,\"category\":\"article\",\"data\":{\"subject\":\"大姐脱鞋熏到女子 火车上互殴\",\"summary\":\"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方大打出手。\",\"cover\":\"/Attachs/Article/288260/857f0347a68e4a24bc9d05564f715584_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 15:15:34\"}},{\"id\":298962,\"oid\":288258,\"category\":\"article\",\"data\":{\"subject\":\"四川一公交太破雨天需打伞开车\",\"summary\":\"市民爆料称,南充901路公交司机打着伞开车,真佩服司机的敬业精神。\",\"cover\":\"/Attachs/Article/288258/81ddda6bccd9424b800d4320dc23ff7e_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 15:13:04\"}},{\"id\":298950,\"oid\":288249,\"category\":\"article\",\"data\":{\"subject\":\"2女生被撞死 母亲路中抱紧尸体\",\"summary\":\"福建泉州,两名初中女生上学路上被撞身亡,司机逃逸被逼停。\",\"cover\":\"/Attachs/Article/288249/a169f8f3488c43fea756228f3f9c34af_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 14:55:06\"}},{\"id\":298949,\"oid\":288248,\"category\":\"article\",\"data\":{\"subject\":\"宁波轨交集体婚礼 地铁当婚车\",\"summary\":\"地铁车厢当婚车,梁祝公园扮婚房,一场特别的公益集体婚礼在宁波举行。\",\"cover\":\"/Attachs/Article/288248/250078f30b9a43e399e3f7c53012034b_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 14:52:42\"}},{\"id\":298943,\"oid\":288247,\"category\":\"article\",\"data\":{\"subject\":\"南京苹果直营店果粉彻夜排队\",\"summary\":\"9月19日上午,苹果南京首家直营店即将开业,果粉彻夜排队守候。\",\"cover\":\"/Attachs/Article/288247/dd4ee3bbaeb343f59c1bd125808f530d_padmini.JPG\",\"pic\":\"\",\"format\":\"txt\",\"changed\":\"2015-09-19 14:48:44\"}}],\"PageIndex\":1,\"PageSize\":20,\"TotalCount\":27860,\"TotalPage\":1393}}";
        Gson gson=new Gson();
        Feed feed = gson.fromJson(json, Feed.class);
        for(int i=0;i
Feed实体类


public class Feed {

    /**
     * status : ok
     * paramz : {"feeds":[{"id":299063,"oid":288331,"category":"article","data":{"subject":"上海男子称劝架被戳瞎眼寻证人","summary":"近日,上海地铁世纪大道站出站口贴出一张\u201c寻找目击证人\u201d的告示。","cover":"/Attachs/Article/288331/2a6dd034cca6434b9eae169c96d5c267_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 19:42:25"}},{"id":299038,"oid":288315,"category":"article","data":{"subject":"福建一干部驾车连撞3人后逃逸","summary":"华安县一名党政干部在驾车连撞3人后逃逸,事发6小时后才向警方投案自首。","cover":"/Attachs/Article/288315/b6e86bb108c84332821263bc93369abf_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 18:03:06"}},{"id":299036,"oid":288313,"category":"article","data":{"subject":"中学防空演练致学生住院","summary":"截至目前,仍有学生住院治疗,部分吸入烟尘较少的、反应较轻的学生已经出院。","cover":"/Attachs/Article/288313/59232ee8363d440592d71bb61aa31cef_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 19:09:51"}},{"id":299035,"oid":288312,"category":"article","data":{"subject":"惯偷被抓后自称刘谦高徒","summary":"惯偷蒙某以草帽当掩护,从轮渡\u201c转战\u201d到南普陀,专找游客下手。","cover":"/Attachs/Article/288312/28ce42849c0c47d48ae646912e2b20bb_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:51:14"}},{"id":299033,"oid":288311,"category":"article","data":{"subject":"男子偷拍被罚赔款 报警求退款","summary":"经过近2个小时的调解和教育,该男子再次向女大学生道歉。","cover":"/Attachs/Article/288311/f756bcd84b674ce1bb10a9e10145a680_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:47:18"}},{"id":299027,"oid":288309,"category":"article","data":{"subject":"台北老夫妇花60万买墓地不能用","summary":"去年老先生因病过世,在下葬前,突然发现这块墓地属于农牧用地,没办法下葬。","cover":"/Attachs/Article/288309/cbcb37310f0c450f964f41aac1279935_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:37:41"}},{"id":299008,"oid":288298,"category":"article","data":{"subject":"宁波集体婚礼地铁当\u201c婚车\u201d","summary":"19日,宁波轨道交通2号线一期即将试运营之际,一场特别的公益集体婚礼举行","cover":"/Attachs/Article/288298/e108df21cb75452890f1a608b1c5181d_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:13:25"}},{"id":299005,"oid":288294,"category":"article","data":{"subject":"4女子离家房子被倒卖蜗居楼道","summary":"北京市公安局朝阳分局经侦大队已受理崔文花的报案,目前该案正在调查中。","cover":"/Attachs/Article/288294/cee8182e731a4240816e62c162a30a91_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:48:19"}},{"id":299003,"oid":288292,"category":"article","data":{"subject":"纽约女子产极低概率同卵三胞胎","summary":"据称,自然受孕并产下同卵三胞胎的概率小到百万分之一。","cover":"/Attachs/Article/288292/c3456fe5f50a4f44910c3b41479d909e_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:00:43"}},{"id":298999,"oid":288288,"category":"article","data":{"subject":"大妈火车上脱鞋引发互殴","summary":"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方竟然大打出手。","cover":"/Attachs/Article/288288/61ce514a12ab4782936bea0a4abecee1_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:55:41"}},{"id":298998,"oid":288287,"category":"article","data":{"subject":"上海男子街头持刀砍伤4名路人","summary":"据网友爆料称,浦东张江一男子持刀伤人,4人被砍伤送医救治。","cover":"/Attachs/Article/288287/6e74c69a400d4055b6f9070bf229b5f5_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:50:33"}},{"id":298997,"oid":288286,"category":"article","data":{"subject":"男子盗窃后\"监视\"警察破案被抓","summary":"接到客栈报案后,邛崃刑侦大队刑警迅速赶到现场。","cover":"/Attachs/Article/288286/b62950e9aff64bc7972fbbcf25ca1ce4_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:46:59"}},{"id":298996,"oid":288285,"category":"article","data":{"subject":"南京一男子闹市仿杰克逊热舞","summary":"据围观市民反映,该男子曾在其他地段有过同样举动,疑似患有精神疾病。","cover":"/Attachs/Article/288285/760f5a4e8a3a4cb997be165361f40fbf_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:41:41"}},{"id":298989,"oid":288274,"category":"article","data":{"subject":"城管协管员喷水驱赶乞讨老人","summary":"相关部门就此解释,城管协管员是不得以才出此下策。","cover":"/Attachs/Article/288274/77e034fbd53148c8b0024dce2fd74a3f_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:03:12"}},{"id":298987,"oid":288273,"category":"article","data":{"subject":"哲学硕士网恋被假女友骗70万","summary":"其实\u201c她\u201d只是个小学文化的男人,一人饰四角,把重点大学硕士骗得团团转。","cover":"/Attachs/Article/288273/776da3e2b8084fb7804b7da1b48e8703_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:57:30"}},{"id":298963,"oid":288260,"category":"article","data":{"subject":"大姐脱鞋熏到女子 火车上互殴","summary":"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方大打出手。","cover":"/Attachs/Article/288260/857f0347a68e4a24bc9d05564f715584_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:15:34"}},{"id":298962,"oid":288258,"category":"article","data":{"subject":"四川一公交太破雨天需打伞开车","summary":"市民爆料称,南充901路公交司机打着伞开车,真佩服司机的敬业精神。","cover":"/Attachs/Article/288258/81ddda6bccd9424b800d4320dc23ff7e_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:13:04"}},{"id":298950,"oid":288249,"category":"article","data":{"subject":"2女生被撞死 母亲路中抱紧尸体","summary":"福建泉州,两名初中女生上学路上被撞身亡,司机逃逸被逼停。","cover":"/Attachs/Article/288249/a169f8f3488c43fea756228f3f9c34af_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:55:06"}},{"id":298949,"oid":288248,"category":"article","data":{"subject":"宁波轨交集体婚礼 地铁当婚车","summary":"地铁车厢当婚车,梁祝公园扮婚房,一场特别的公益集体婚礼在宁波举行。","cover":"/Attachs/Article/288248/250078f30b9a43e399e3f7c53012034b_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:52:42"}},{"id":298943,"oid":288247,"category":"article","data":{"subject":"南京苹果直营店果粉彻夜排队","summary":"9月19日上午,苹果南京首家直营店即将开业,果粉彻夜排队守候。","cover":"/Attachs/Article/288247/dd4ee3bbaeb343f59c1bd125808f530d_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:48:44"}}],"PageIndex":1,"PageSize":20,"TotalCount":27860,"TotalPage":1393}
     */

    private String status;
    private ParamzBean paramz;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public ParamzBean getParamz() {
        return paramz;
    }

    public void setParamz(ParamzBean paramz) {
        this.paramz = paramz;
    }

    public static class ParamzBean {
        /**
         * feeds : [{"id":299063,"oid":288331,"category":"article","data":{"subject":"上海男子称劝架被戳瞎眼寻证人","summary":"近日,上海地铁世纪大道站出站口贴出一张\u201c寻找目击证人\u201d的告示。","cover":"/Attachs/Article/288331/2a6dd034cca6434b9eae169c96d5c267_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 19:42:25"}},{"id":299038,"oid":288315,"category":"article","data":{"subject":"福建一干部驾车连撞3人后逃逸","summary":"华安县一名党政干部在驾车连撞3人后逃逸,事发6小时后才向警方投案自首。","cover":"/Attachs/Article/288315/b6e86bb108c84332821263bc93369abf_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 18:03:06"}},{"id":299036,"oid":288313,"category":"article","data":{"subject":"中学防空演练致学生住院","summary":"截至目前,仍有学生住院治疗,部分吸入烟尘较少的、反应较轻的学生已经出院。","cover":"/Attachs/Article/288313/59232ee8363d440592d71bb61aa31cef_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 19:09:51"}},{"id":299035,"oid":288312,"category":"article","data":{"subject":"惯偷被抓后自称刘谦高徒","summary":"惯偷蒙某以草帽当掩护,从轮渡\u201c转战\u201d到南普陀,专找游客下手。","cover":"/Attachs/Article/288312/28ce42849c0c47d48ae646912e2b20bb_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:51:14"}},{"id":299033,"oid":288311,"category":"article","data":{"subject":"男子偷拍被罚赔款 报警求退款","summary":"经过近2个小时的调解和教育,该男子再次向女大学生道歉。","cover":"/Attachs/Article/288311/f756bcd84b674ce1bb10a9e10145a680_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:47:18"}},{"id":299027,"oid":288309,"category":"article","data":{"subject":"台北老夫妇花60万买墓地不能用","summary":"去年老先生因病过世,在下葬前,突然发现这块墓地属于农牧用地,没办法下葬。","cover":"/Attachs/Article/288309/cbcb37310f0c450f964f41aac1279935_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:37:41"}},{"id":299008,"oid":288298,"category":"article","data":{"subject":"宁波集体婚礼地铁当\u201c婚车\u201d","summary":"19日,宁波轨道交通2号线一期即将试运营之际,一场特别的公益集体婚礼举行","cover":"/Attachs/Article/288298/e108df21cb75452890f1a608b1c5181d_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:13:25"}},{"id":299005,"oid":288294,"category":"article","data":{"subject":"4女子离家房子被倒卖蜗居楼道","summary":"北京市公安局朝阳分局经侦大队已受理崔文花的报案,目前该案正在调查中。","cover":"/Attachs/Article/288294/cee8182e731a4240816e62c162a30a91_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:48:19"}},{"id":299003,"oid":288292,"category":"article","data":{"subject":"纽约女子产极低概率同卵三胞胎","summary":"据称,自然受孕并产下同卵三胞胎的概率小到百万分之一。","cover":"/Attachs/Article/288292/c3456fe5f50a4f44910c3b41479d909e_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 17:00:43"}},{"id":298999,"oid":288288,"category":"article","data":{"subject":"大妈火车上脱鞋引发互殴","summary":"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方竟然大打出手。","cover":"/Attachs/Article/288288/61ce514a12ab4782936bea0a4abecee1_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:55:41"}},{"id":298998,"oid":288287,"category":"article","data":{"subject":"上海男子街头持刀砍伤4名路人","summary":"据网友爆料称,浦东张江一男子持刀伤人,4人被砍伤送医救治。","cover":"/Attachs/Article/288287/6e74c69a400d4055b6f9070bf229b5f5_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:50:33"}},{"id":298997,"oid":288286,"category":"article","data":{"subject":"男子盗窃后\"监视\"警察破案被抓","summary":"接到客栈报案后,邛崃刑侦大队刑警迅速赶到现场。","cover":"/Attachs/Article/288286/b62950e9aff64bc7972fbbcf25ca1ce4_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:46:59"}},{"id":298996,"oid":288285,"category":"article","data":{"subject":"南京一男子闹市仿杰克逊热舞","summary":"据围观市民反映,该男子曾在其他地段有过同样举动,疑似患有精神疾病。","cover":"/Attachs/Article/288285/760f5a4e8a3a4cb997be165361f40fbf_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:41:41"}},{"id":298989,"oid":288274,"category":"article","data":{"subject":"城管协管员喷水驱赶乞讨老人","summary":"相关部门就此解释,城管协管员是不得以才出此下策。","cover":"/Attachs/Article/288274/77e034fbd53148c8b0024dce2fd74a3f_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 16:03:12"}},{"id":298987,"oid":288273,"category":"article","data":{"subject":"哲学硕士网恋被假女友骗70万","summary":"其实\u201c她\u201d只是个小学文化的男人,一人饰四角,把重点大学硕士骗得团团转。","cover":"/Attachs/Article/288273/776da3e2b8084fb7804b7da1b48e8703_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:57:30"}},{"id":298963,"oid":288260,"category":"article","data":{"subject":"大姐脱鞋熏到女子 火车上互殴","summary":"一位中年大姐脱鞋产生异味,引起对面的年轻女子不满,双方大打出手。","cover":"/Attachs/Article/288260/857f0347a68e4a24bc9d05564f715584_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:15:34"}},{"id":298962,"oid":288258,"category":"article","data":{"subject":"四川一公交太破雨天需打伞开车","summary":"市民爆料称,南充901路公交司机打着伞开车,真佩服司机的敬业精神。","cover":"/Attachs/Article/288258/81ddda6bccd9424b800d4320dc23ff7e_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 15:13:04"}},{"id":298950,"oid":288249,"category":"article","data":{"subject":"2女生被撞死 母亲路中抱紧尸体","summary":"福建泉州,两名初中女生上学路上被撞身亡,司机逃逸被逼停。","cover":"/Attachs/Article/288249/a169f8f3488c43fea756228f3f9c34af_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:55:06"}},{"id":298949,"oid":288248,"category":"article","data":{"subject":"宁波轨交集体婚礼 地铁当婚车","summary":"地铁车厢当婚车,梁祝公园扮婚房,一场特别的公益集体婚礼在宁波举行。","cover":"/Attachs/Article/288248/250078f30b9a43e399e3f7c53012034b_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:52:42"}},{"id":298943,"oid":288247,"category":"article","data":{"subject":"南京苹果直营店果粉彻夜排队","summary":"9月19日上午,苹果南京首家直营店即将开业,果粉彻夜排队守候。","cover":"/Attachs/Article/288247/dd4ee3bbaeb343f59c1bd125808f530d_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 14:48:44"}}]
         * PageIndex : 1
         * PageSize : 20
         * TotalCount : 27860
         * TotalPage : 1393
         */

        private int PageIndex;
        private int PageSize;
        private int TotalCount;
        private int TotalPage;
        private List feeds;

        public int getPageIndex() {
            return PageIndex;
        }

        public void setPageIndex(int PageIndex) {
            this.PageIndex = PageIndex;
        }

        public int getPageSize() {
            return PageSize;
        }

        public void setPageSize(int PageSize) {
            this.PageSize = PageSize;
        }

        public int getTotalCount() {
            return TotalCount;
        }

        public void setTotalCount(int TotalCount) {
            this.TotalCount = TotalCount;
        }

        public int getTotalPage() {
            return TotalPage;
        }

        public void setTotalPage(int TotalPage) {
            this.TotalPage = TotalPage;
        }

        public List getFeeds() {
            return feeds;
        }

        public void setFeeds(List feeds) {
            this.feeds = feeds;
        }

        public static class FeedsBean {
            /**
             * id : 299063
             * oid : 288331
             * category : article
             * data : {"subject":"上海男子称劝架被戳瞎眼寻证人","summary":"近日,上海地铁世纪大道站出站口贴出一张\u201c寻找目击证人\u201d的告示。","cover":"/Attachs/Article/288331/2a6dd034cca6434b9eae169c96d5c267_padmini.JPG","pic":"","format":"txt","changed":"2015-09-19 19:42:25"}
             */

            private int id;
            private int oid;
            private String category;
            private DataBean data;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getOid() {
                return oid;
            }

            public void setOid(int oid) {
                this.oid = oid;
            }

            public String getCategory() {
                return category;
            }

            public void setCategory(String category) {
                this.category = category;
            }

            public DataBean getData() {
                return data;
            }

            public void setData(DataBean data) {
                this.data = data;
            }

            public static class DataBean {
                /**
                 * subject : 上海男子称劝架被戳瞎眼寻证人
                 * summary : 近日,上海地铁世纪大道站出站口贴出一张“寻找目击证人”的告示。
                 * cover : /Attachs/Article/288331/2a6dd034cca6434b9eae169c96d5c267_padmini.JPG
                 * pic :
                 * format : txt
                 * changed : 2015-09-19 19:42:25
                 */

                private String subject;
                private String summary;
                private String cover;
                private String pic;
                private String format;
                private String changed;

                public String getSubject() {
                    return subject;
                }

                public void setSubject(String subject) {
                    this.subject = subject;
                }

                public String getSummary() {
                    return summary;
                }

                public void setSummary(String summary) {
                    this.summary = summary;
                }

                public String getCover() {
                    return cover;
                }

                public void setCover(String cover) {
                    this.cover = cover;
                }

                public String getPic() {
                    return pic;
                }

                public void setPic(String pic) {
                    this.pic = pic;
                }

                public String getFormat() {
                    return format;
                }

                public void setFormat(String format) {
                    this.format = format;
                }

                public String getChanged() {
                    return changed;
                }

                public void setChanged(String changed) {
                    this.changed = changed;
                }
            }
        }
    }
}


你可能感兴趣的:(Gson解析)