// Path: app/src/main/java/io/gitcafe/zhanjiashu/newzhihudialy/model/DialyEntity.java
// public class DialyEntity {
// 
//     private String date;
//     private List<StoryEntity> stories;
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public void setStories(List<StoryEntity> stories) {
//         this.stories = stories;
//     }
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public List<StoryEntity> getStories() {
//         return stories;
//     }
// }


import android.content.Context;
import com.google.gson.Gson;
import io.gitcafe.zhanjiashu.newzhihudialy.model.DialyEntity;
package io.gitcafe.zhanjiashu.newzhihudialy.task;




/**
 * Created by Jiashu on 2015/6/7.
 */
public class FetchDialyTask extends FetchTask<DialyEntity> {

    private static final String URL_BEFORE = "http://news-at.zhihu.com/api/4/stories/before/";

    public FetchDialyTask(Context context, String date, boolean fetchFromNetworkFirst, boolean cacheOnDisk) {
        super(context, URL_BEFORE + date, fetchFromNetworkFirst, cacheOnDisk);
    }

    @Override
// Path: app/src/main/java/io/gitcafe/zhanjiashu/newzhihudialy/model/DialyEntity.java
// public class DialyEntity {
// 
//     private String date;
//     private List<StoryEntity> stories;
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public void setStories(List<StoryEntity> stories) {
//         this.stories = stories;
//     }
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public List<StoryEntity> getStories() {
//         return stories;
//     }
// }


// Path: app/src/main/java/io/gitcafe/zhanjiashu/newzhihudialy/task/FetchDialyTask.java
import android.content.Context;
import com.google.gson.Gson;
import io.gitcafe.zhanjiashu.newzhihudialy.model.DialyEntity;

package io.gitcafe.zhanjiashu.newzhihudialy.task;




/**
 * Created by Jiashu on 2015/6/7.
 */
public class FetchDialyTask extends FetchTask<DialyEntity> {

    private static final String URL_BEFORE = "http://news-at.zhihu.com/api/4/stories/before/";

    public FetchDialyTask(Context context, String date, boolean fetchFromNetworkFirst, boolean cacheOnDisk) {
        super(context, URL_BEFORE + date, fetchFromNetworkFirst, cacheOnDisk);
    }

    @Override
    protected void parseResponse(String response, FetchCallback<DialyEntity> callback) {