// Path: app/src/main/java/com/livingstoneapp/interactors/IPermissionsInteractor.java
// public interface IPermissionsInteractor {
//     Observable<ArrayList<DeclaredPermission>> getDeclaredPermissions(String packageName);
//     Observable<ArrayList<RequestedPermission>> getRequestedPermissions(String packageName);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/views/IRequestedPermissionsFragmentView.java
// public interface IRequestedPermissionsFragmentView {
//     void showError(String message);
//     void setModel(ArrayList<RequestedPermission> permissions);
//     void showWaitDialog();
//     void hideWaitDialog();
//     void showDetailContainer();
//     void hideDetailContainer();
//     void showNoValuesText();
//     void hideNoValuesText();
// }


import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import com.livingstoneapp.interactors.IPermissionsInteractor;
import com.livingstoneapp.views.IRequestedPermissionsFragmentView;
package com.livingstoneapp.presenters;


/**
 * Created by renier on 2/18/2016.
 */
public class RequestedPermissionsFragmentPresenterImpl implements IRequestedPermissionsFragmentPresenter {
    private IPermissionsInteractor mInteractor;
    private IRequestedPermissionsFragmentView mView;

    public RequestedPermissionsFragmentPresenterImpl(IPermissionsInteractor interactor) {
        mInteractor = interactor;
    }

    @Override
    public void setView(IRequestedPermissionsFragmentView view) {
        mView = view;
    }

    @Override
    public void clearView() {
// Path: app/src/main/java/com/livingstoneapp/interactors/IPermissionsInteractor.java
// public interface IPermissionsInteractor {
//     Observable<ArrayList<DeclaredPermission>> getDeclaredPermissions(String packageName);
//     Observable<ArrayList<RequestedPermission>> getRequestedPermissions(String packageName);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/views/IRequestedPermissionsFragmentView.java
// public interface IRequestedPermissionsFragmentView {
//     void showError(String message);
//     void setModel(ArrayList<RequestedPermission> permissions);
//     void showWaitDialog();
//     void hideWaitDialog();
//     void showDetailContainer();
//     void hideDetailContainer();
//     void showNoValuesText();
//     void hideNoValuesText();
// }


// Path: app/src/main/java/com/livingstoneapp/presenters/RequestedPermissionsFragmentPresenterImpl.java
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import com.livingstoneapp.interactors.IPermissionsInteractor;
import com.livingstoneapp.views.IRequestedPermissionsFragmentView;

package com.livingstoneapp.presenters;


/**
 * Created by renier on 2/18/2016.
 */
public class RequestedPermissionsFragmentPresenterImpl implements IRequestedPermissionsFragmentPresenter {
    private IPermissionsInteractor mInteractor;
    private IRequestedPermissionsFragmentView mView;

    public RequestedPermissionsFragmentPresenterImpl(IPermissionsInteractor interactor) {
        mInteractor = interactor;
    }

    @Override
    public void setView(IRequestedPermissionsFragmentView view) {
        mView = view;
    }

    @Override
    public void clearView() {
        mView = null;