// Path: app/src/main/java/com/livingstoneapp/interactors/IBroadcastReceiverInteractor.java
// public interface IBroadcastReceiverInteractor {
//     Observable<ArrayList<BroadcastReceiverInfo>> getBroadcastReceivers(String packageName);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/models/BroadcastReceiverInfo.java
// public class BroadcastReceiverInfo implements Parcelable, Comparable<BroadcastReceiverInfo> {
//     private String mName;
// 
//     public BroadcastReceiverInfo(
//             String mName) {
//         this.mName = mName;
//     }
// 
// 
//     public String getName() {
//         return mName;
//     }
// 
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(this.mName);
//     }
// 
//     protected BroadcastReceiverInfo(Parcel in) {
//         this.mName = in.readString();
//     }
// 
//     public static final Creator<BroadcastReceiverInfo> CREATOR = new Creator<BroadcastReceiverInfo>() {
//         public BroadcastReceiverInfo createFromParcel(Parcel source) {
//             return new BroadcastReceiverInfo(source);
//         }
// 
//         public BroadcastReceiverInfo[] newArray(int size) {
//             return new BroadcastReceiverInfo[size];
//         }
//     };
// 
//     @Override
//     public int compareTo(BroadcastReceiverInfo another) {
//         return this.getName().compareToIgnoreCase(another.getName());
//     }
// }
// 
// Path: app/src/main/java/com/livingstoneapp/views/IBroadcastReceiversFragmentView.java
// public interface IBroadcastReceiversFragmentView {
//     void showError(String message);
//     void setModel(ArrayList<BroadcastReceiverInfo> receivers);
//     void showWaitDialog();
//     void hideWaitDialog();
//     void showDetailContainer();
//     void hideDetailContainer();
//     void startBroadcastReceiverDetailActivity(BroadcastReceiverInfo receiver);
//     void showNoValuesText();
//     void hideNoValuesText();
// }


import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import com.livingstoneapp.interactors.IBroadcastReceiverInteractor;
import com.livingstoneapp.models.BroadcastReceiverInfo;
import com.livingstoneapp.views.IBroadcastReceiversFragmentView;
package com.livingstoneapp.presenters;



/**
 * Created by Renier on 2016/02/16.
 */
public class BroadcastReceiversFragmentPresenterImpl implements IBroadcastReceiversFragmentPresenter {

    private IBroadcastReceiverInteractor mInteractor;
    private IBroadcastReceiversFragmentView mView;

    public BroadcastReceiversFragmentPresenterImpl(IBroadcastReceiverInteractor interactor) {
// Path: app/src/main/java/com/livingstoneapp/interactors/IBroadcastReceiverInteractor.java
// public interface IBroadcastReceiverInteractor {
//     Observable<ArrayList<BroadcastReceiverInfo>> getBroadcastReceivers(String packageName);
// }
// 
// Path: app/src/main/java/com/livingstoneapp/models/BroadcastReceiverInfo.java
// public class BroadcastReceiverInfo implements Parcelable, Comparable<BroadcastReceiverInfo> {
//     private String mName;
// 
//     public BroadcastReceiverInfo(
//             String mName) {
//         this.mName = mName;
//     }
// 
// 
//     public String getName() {
//         return mName;
//     }
// 
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(this.mName);
//     }
// 
//     protected BroadcastReceiverInfo(Parcel in) {
//         this.mName = in.readString();
//     }
// 
//     public static final Creator<BroadcastReceiverInfo> CREATOR = new Creator<BroadcastReceiverInfo>() {
//         public BroadcastReceiverInfo createFromParcel(Parcel source) {
//             return new BroadcastReceiverInfo(source);
//         }
// 
//         public BroadcastReceiverInfo[] newArray(int size) {
//             return new BroadcastReceiverInfo[size];
//         }
//     };
// 
//     @Override
//     public int compareTo(BroadcastReceiverInfo another) {
//         return this.getName().compareToIgnoreCase(another.getName());
//     }
// }
// 
// Path: app/src/main/java/com/livingstoneapp/views/IBroadcastReceiversFragmentView.java
// public interface IBroadcastReceiversFragmentView {
//     void showError(String message);
//     void setModel(ArrayList<BroadcastReceiverInfo> receivers);
//     void showWaitDialog();
//     void hideWaitDialog();
//     void showDetailContainer();
//     void hideDetailContainer();
//     void startBroadcastReceiverDetailActivity(BroadcastReceiverInfo receiver);
//     void showNoValuesText();
//     void hideNoValuesText();
// }


// Path: app/src/main/java/com/livingstoneapp/presenters/BroadcastReceiversFragmentPresenterImpl.java
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import com.livingstoneapp.interactors.IBroadcastReceiverInteractor;
import com.livingstoneapp.models.BroadcastReceiverInfo;
import com.livingstoneapp.views.IBroadcastReceiversFragmentView;

package com.livingstoneapp.presenters;



/**
 * Created by Renier on 2016/02/16.
 */
public class BroadcastReceiversFragmentPresenterImpl implements IBroadcastReceiversFragmentPresenter {

    private IBroadcastReceiverInteractor mInteractor;
    private IBroadcastReceiversFragmentView mView;

    public BroadcastReceiversFragmentPresenterImpl(IBroadcastReceiverInteractor interactor) {
        mInteractor = interactor;