// Path: module_news/src/main/java/com/guiying/module/news/data/bean/StoryList.java
// public class StoryList {
// 
//     private String date;
//     private List<Story> stories;
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public List<Story> getStories() {
//         return stories;
//     }
// 
//     public void setStories(List<Story> stories) {
//         this.stories = stories;
//     }
// }


import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;
import com.guiying.module.news.R;
import com.guiying.module.news.data.bean.StoryList;
import com.jude.easyrecyclerview.EasyRecyclerView;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.jude.easyrecyclerview.decoration.DividerDecoration;

    @Override
    public void onRefresh() {
        mPresenter.getNewMessages(1, 20, mDate);
    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        isActive = true;
        mPresenter.getNewMessages(1, 20, mDate);
    }

    @Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        isActive = false;
    }

    @Override
    public void setPresenter(NewsListContract.Presenter presenter) {
        mPresenter = presenter;
    }

    @Override
    public boolean isActive() {
        return isActive;
    }

    @Override
// Path: module_news/src/main/java/com/guiying/module/news/data/bean/StoryList.java
// public class StoryList {
// 
//     private String date;
//     private List<Story> stories;
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public List<Story> getStories() {
//         return stories;
//     }
// 
//     public void setStories(List<Story> stories) {
//         this.stories = stories;
//     }
// }


// Path: module_news/src/main/java/com/guiying/module/news/main/NewsListView.java
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;
import com.guiying.module.news.R;
import com.guiying.module.news.data.bean.StoryList;
import com.jude.easyrecyclerview.EasyRecyclerView;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.jude.easyrecyclerview.decoration.DividerDecoration;


    @Override
    public void onRefresh() {
        mPresenter.getNewMessages(1, 20, mDate);
    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        isActive = true;
        mPresenter.getNewMessages(1, 20, mDate);
    }

    @Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        isActive = false;
    }

    @Override
    public void setPresenter(NewsListContract.Presenter presenter) {
        mPresenter = presenter;
    }

    @Override
    public boolean isActive() {
        return isActive;
    }

    @Override
    public void showNewsList(StoryList info) {