// Path: app/src/main/java/moe/yukinoneko/diycode/bean/Node.java
// public class Node {
// 
//     @SerializedName("id") public int id;                            // 节点 id
//     @SerializedName("name") public String name;                     // 节点名
//     @SerializedName("topics_count") public int topicsCount;         // 话题数量
//     @SerializedName("summary") public String summary;               // 节点介绍
//     @SerializedName("section_id") public int sectionId;             // 分类 id
//     @SerializedName("sort") public int sort;                        // 排序
//     @SerializedName("section_name") public String sectionName;      // 分类名
//     @SerializedName("updated_at") public Date updatedAt;            // 更新时间
// }
// 
// Path: app/src/main/java/moe/yukinoneko/diycode/mvp/BasePresenter.java
// public interface BasePresenter<V extends BaseView> {
//     void attachView(V view);
// 
//     void detachView();
// }
// 
// Path: app/src/main/java/moe/yukinoneko/diycode/mvp/BaseView.java
// public interface BaseView {
//     Context getContext();
// 
//     <T> LifecycleTransformer<T> bindToLife();
// }


import java.io.File;
import java.util.List;
import moe.yukinoneko.diycode.bean.Node;
import moe.yukinoneko.diycode.mvp.BasePresenter;
import moe.yukinoneko.diycode.mvp.BaseView;
/*
 * Copyright (c) 2017 SamuelGjk <samuel.alva@outlook.com>
 *
 * This file is part of DiyCode
 *
 * DiyCode is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DiyCode is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DiyCode. If not, see <http://www.gnu.org/licenses/>.
 */

package moe.yukinoneko.diycode.module.topic.create;



/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class CreateTopicContract {
    interface View extends BaseView {
        void updateNodes(List<Node> nodes);

        int getNodeId();

        String getTopicTitle();

        String getContent();

        void showProgress(boolean show);

// Path: app/src/main/java/moe/yukinoneko/diycode/bean/Node.java
// public class Node {
// 
//     @SerializedName("id") public int id;                            // 节点 id
//     @SerializedName("name") public String name;                     // 节点名
//     @SerializedName("topics_count") public int topicsCount;         // 话题数量
//     @SerializedName("summary") public String summary;               // 节点介绍
//     @SerializedName("section_id") public int sectionId;             // 分类 id
//     @SerializedName("sort") public int sort;                        // 排序
//     @SerializedName("section_name") public String sectionName;      // 分类名
//     @SerializedName("updated_at") public Date updatedAt;            // 更新时间
// }
// 
// Path: app/src/main/java/moe/yukinoneko/diycode/mvp/BasePresenter.java
// public interface BasePresenter<V extends BaseView> {
//     void attachView(V view);
// 
//     void detachView();
// }
// 
// Path: app/src/main/java/moe/yukinoneko/diycode/mvp/BaseView.java
// public interface BaseView {
//     Context getContext();
// 
//     <T> LifecycleTransformer<T> bindToLife();
// }


// Path: app/src/main/java/moe/yukinoneko/diycode/module/topic/create/CreateTopicContract.java
import java.io.File;
import java.util.List;
import moe.yukinoneko.diycode.bean.Node;
import moe.yukinoneko.diycode.mvp.BasePresenter;
import moe.yukinoneko.diycode.mvp.BaseView;

/*
 * Copyright (c) 2017 SamuelGjk <samuel.alva@outlook.com>
 *
 * This file is part of DiyCode
 *
 * DiyCode is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DiyCode is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DiyCode. If not, see <http://www.gnu.org/licenses/>.
 */

package moe.yukinoneko.diycode.module.topic.create;



/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class CreateTopicContract {
    interface View extends BaseView {
        void updateNodes(List<Node> nodes);

        int getNodeId();

        String getTopicTitle();

        String getContent();

        void showProgress(boolean show);

        void titleError();