// Path: app/src/main/java/com/livingstoneapp/models/ServiceInfoInternal.java
// public class ServiceInfoInternal {
//     private String mName;
//     private boolean mEnabled;
//     private boolean mExported;
//     private String mProcessName;
//     private String mPermission;
//     private ArrayList<String> mFlags;
// 
//     public ServiceInfoInternal(String mName, boolean mEnabled, boolean mExported, String mProcessName, String mPermission, ArrayList<String> mFlags) {
//         this.mName = mName;
//         this.mEnabled = mEnabled;
//         this.mExported = mExported;
//         this.mProcessName = mProcessName;
//         this.mPermission = mPermission;
//         this.mFlags = mFlags;
//     }
// 
//     public boolean isEnabled() {
//         return mEnabled;
//     }
// 
//     public boolean isExported() {
//         return mExported;
//     }
// 
//     public ArrayList<String> getFlags() {
//         return mFlags;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getPermission() {
//         return mPermission;
//     }
// 
//     public String getProcessName() {
//         return mProcessName;
//     }
// }
// 
// Path: app/src/main/java/com/livingstoneapp/utils/Utils.java
// public class Utils {
//     public static boolean hasFlag(
//             int flags,
//             int flagToCheck
//     ) {
//         return ((flags & flagToCheck) == flagToCheck);
//     }
// }


import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import java.util.ArrayList;
import rx.Observable;
import com.livingstoneapp.models.ServiceInfoInternal;
import com.livingstoneapp.utils.Utils;
package com.livingstoneapp.interactors;





/**
 * Created by renier on 2/22/2016.
 */
public class ServiceInteractorImpl implements IServiceInteractor {
    private Context mContext;

    public ServiceInteractorImpl(Context context) {
        mContext = context;
    }

    @Override
// Path: app/src/main/java/com/livingstoneapp/models/ServiceInfoInternal.java
// public class ServiceInfoInternal {
//     private String mName;
//     private boolean mEnabled;
//     private boolean mExported;
//     private String mProcessName;
//     private String mPermission;
//     private ArrayList<String> mFlags;
// 
//     public ServiceInfoInternal(String mName, boolean mEnabled, boolean mExported, String mProcessName, String mPermission, ArrayList<String> mFlags) {
//         this.mName = mName;
//         this.mEnabled = mEnabled;
//         this.mExported = mExported;
//         this.mProcessName = mProcessName;
//         this.mPermission = mPermission;
//         this.mFlags = mFlags;
//     }
// 
//     public boolean isEnabled() {
//         return mEnabled;
//     }
// 
//     public boolean isExported() {
//         return mExported;
//     }
// 
//     public ArrayList<String> getFlags() {
//         return mFlags;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getPermission() {
//         return mPermission;
//     }
// 
//     public String getProcessName() {
//         return mProcessName;
//     }
// }
// 
// Path: app/src/main/java/com/livingstoneapp/utils/Utils.java
// public class Utils {
//     public static boolean hasFlag(
//             int flags,
//             int flagToCheck
//     ) {
//         return ((flags & flagToCheck) == flagToCheck);
//     }
// }


// Path: app/src/main/java/com/livingstoneapp/interactors/ServiceInteractorImpl.java
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import java.util.ArrayList;
import rx.Observable;
import com.livingstoneapp.models.ServiceInfoInternal;
import com.livingstoneapp.utils.Utils;

package com.livingstoneapp.interactors;





/**
 * Created by renier on 2/22/2016.
 */
public class ServiceInteractorImpl implements IServiceInteractor {
    private Context mContext;

    public ServiceInteractorImpl(Context context) {
        mContext = context;
    }

    @Override
    public Observable<ArrayList<ServiceInfoInternal>> getServices(String packageName) {