// Path: app/src/main/java/com/hut/zero/BasePresenter.java
// public interface BasePresenter {
//     // 获取数据并改变界面显示，在todo-mvp的项目中的调用时机为Fragment的OnResume()方法中
//     void start();
// }
// 
// Path: app/src/main/java/com/hut/zero/BaseView.java
// public interface BaseView<T> {
//     // 为View设置Presenter
//     void setPresenter(T presenter);
//     // 初始化界面控件
//     void initViews();
// }
// 
// Path: app/src/main/java/com/hut/zero/bean/ZhihuDailyNews.java
// public class ZhihuDailyNews {
// 
//     private String date;
//     private ArrayList<Question> stories;
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public ArrayList<Question> getStories() {
//         return stories;
//     }
// 
//     public void setStories(ArrayList<Question> stories) {
//         this.stories = stories;
//     }
// 
//     public class Question {
// 
//         private ArrayList<String> images;
//         private int type;
//         private int id;
//         private String ga_prefix;
//         private String title;
// 
//         public ArrayList<String> getImages() {
//             return images;
//         }
// 
//         public void setImages(ArrayList<String> images) {
//             this.images = images;
//         }
// 
//         public int getType() {
//             return type;
//         }
// 
//         public void setType(int type) {
//             this.type = type;
//         }
// 
//         public int getId() {
//             return id;
//         }
// 
//         public void setId(int id) {
//             this.id = id;
//         }
// 
//         public String getGa_prefix() {
//             return ga_prefix;
//         }
// 
//         public void setGa_prefix(String ga_prefix) {
//             this.ga_prefix = ga_prefix;
//         }
// 
//         public String getTitle() {
//             return title;
//         }
// 
//         public void setTitle(String title) {
//             this.title = title;
//         }
//     }
// 
// }


import com.hut.zero.BasePresenter;
import com.hut.zero.BaseView;
import com.hut.zero.bean.ZhihuDailyNews;
import java.util.ArrayList;
/*
 * Copyright 2017 lizhaotailang
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hut.zero.homepage;



/**
 * Created by Lizhaotailang on 2016/9/16.
 */

public interface ZhihuDailyContract {

    interface View extends BaseView<Presenter> {

        // 显示加载或其他类型的错误
        void showError();

        // 显示正在加载
        void showLoading();

        // 停止显示正在加载
        void stopLoading();

        // 成功获取到数据后，在界面中显示
// Path: app/src/main/java/com/hut/zero/BasePresenter.java
// public interface BasePresenter {
//     // 获取数据并改变界面显示，在todo-mvp的项目中的调用时机为Fragment的OnResume()方法中
//     void start();
// }
// 
// Path: app/src/main/java/com/hut/zero/BaseView.java
// public interface BaseView<T> {
//     // 为View设置Presenter
//     void setPresenter(T presenter);
//     // 初始化界面控件
//     void initViews();
// }
// 
// Path: app/src/main/java/com/hut/zero/bean/ZhihuDailyNews.java
// public class ZhihuDailyNews {
// 
//     private String date;
//     private ArrayList<Question> stories;
// 
//     public String getDate() {
//         return date;
//     }
// 
//     public void setDate(String date) {
//         this.date = date;
//     }
// 
//     public ArrayList<Question> getStories() {
//         return stories;
//     }
// 
//     public void setStories(ArrayList<Question> stories) {
//         this.stories = stories;
//     }
// 
//     public class Question {
// 
//         private ArrayList<String> images;
//         private int type;
//         private int id;
//         private String ga_prefix;
//         private String title;
// 
//         public ArrayList<String> getImages() {
//             return images;
//         }
// 
//         public void setImages(ArrayList<String> images) {
//             this.images = images;
//         }
// 
//         public int getType() {
//             return type;
//         }
// 
//         public void setType(int type) {
//             this.type = type;
//         }
// 
//         public int getId() {
//             return id;
//         }
// 
//         public void setId(int id) {
//             this.id = id;
//         }
// 
//         public String getGa_prefix() {
//             return ga_prefix;
//         }
// 
//         public void setGa_prefix(String ga_prefix) {
//             this.ga_prefix = ga_prefix;
//         }
// 
//         public String getTitle() {
//             return title;
//         }
// 
//         public void setTitle(String title) {
//             this.title = title;
//         }
//     }
// 
// }


// Path: app/src/main/java/com/hut/zero/homepage/ZhihuDailyContract.java
import com.hut.zero.BasePresenter;
import com.hut.zero.BaseView;
import com.hut.zero.bean.ZhihuDailyNews;
import java.util.ArrayList;

/*
 * Copyright 2017 lizhaotailang
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hut.zero.homepage;



/**
 * Created by Lizhaotailang on 2016/9/16.
 */

public interface ZhihuDailyContract {

    interface View extends BaseView<Presenter> {

        // 显示加载或其他类型的错误
        void showError();

        // 显示正在加载
        void showLoading();

        // 停止显示正在加载
        void stopLoading();

        // 成功获取到数据后，在界面中显示
        void showResults(ArrayList<ZhihuDailyNews.Question> list);