package com.fastaccess.ui.modules.gists.gist.files;

import android.view.View;

import com.fastaccess.data.dao.FilesListModel;
import com.fastaccess.helper.Logger;
import com.fastaccess.ui.base.mvp.presenter.BasePresenter;

/**
 * Created by Kosh on 13 Nov 2016, 1:35 PM
 */

class GistFilesListPresenter extends BasePresenter<GistFilesListMvp.View> implements GistFilesListMvp.Presenter {

    @Override public void onItemClick(int position, View v, FilesListModel item) {
        Logger.e(item.getFilename());
        if (getView() != null) getView().onOpenFile(item);
    }

    @Override public void onItemLongClick(int position, View v, FilesListModel item) {
        onItemClick(position, v, item);
    }
}
