package kr.co.hanwha.hifive.screen.main.dashboard.contract;

import android.support.annotation.NonNull;

import kr.co.hanwha.hifive.base.BasePresenter;
import kr.co.hanwha.hifive.base.BaseView;
import kr.co.hanwha.hifive.enums.ProjectEvaluationType;

/**
 * Created by sanghoonkwon on 2018. 3. 19..
 */

public interface DashboardProjectContract {
    interface View extends BaseView<Presenter> {
        void setRefreshing(boolean refreshing);
    }

    interface Presenter extends BasePresenter {
        /**
         * 필터 : 진행중 / 전체
         * @param isAll Boolean
         */
        void setIsAll(boolean isAll);

        /**
         * Initialize Data
         *
         * @param projectId   ID
         * @param needLoading ProgressBar
         */
        void initTaskData(@NonNull int projectId, @NonNull boolean needLoading);

        /**
         * Change issue(web view)
         */
        void showEditIssueDialog();

        /**
         * Change project color dialog
         */
        void showProjectColorDialog();

        /**
         * Update project color
         *
         * @param type evaluation color
         */
        void updateProjectColor(ProjectEvaluationType type);
    }
}
