// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/BusProvider.java
// public class BusProvider {
//     private static Bus bus;
// 
//     public static Bus getProvider() {
//         if (bus == null) {
//             bus = new Bus();
//         }
//         return bus;
//     }
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/InsideGeofenceEvent.java
// public class InsideGeofenceEvent {
//     int[] geofenceIdList;
// 
//     public InsideGeofenceEvent() {
//     }
// 
//     public InsideGeofenceEvent(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// 
//     public int[] getGeofenceIdList() {
//         return geofenceIdList;
//     }
// 
//     public void setGeofenceIdList(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/LocationUnavailableEvent.java
// public class LocationUnavailableEvent {
// 
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/OutsideGeofenceEvent.java
// public class OutsideGeofenceEvent {
//     int[] geofenceIdList;
// 
//     public OutsideGeofenceEvent() {
//     }
// 
//     public OutsideGeofenceEvent(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// 
//     public int[] getGeofenceIdList() {
//         return geofenceIdList;
//     }
// 
//     public void setGeofenceIdList(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// }


import android.app.enterprise.geofencing.CircularGeofence;
import android.app.enterprise.geofencing.Geofence;
import android.app.enterprise.geofencing.Geofencing;
import android.app.enterprise.geofencing.LatLongPoint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.akexorcist.knoxgeofencingapp.bus.BusProvider;
import com.akexorcist.knoxgeofencingapp.bus.event.InsideGeofenceEvent;
import com.akexorcist.knoxgeofencingapp.bus.event.LocationUnavailableEvent;
import com.akexorcist.knoxgeofencingapp.bus.event.OutsideGeofenceEvent;
import com.squareup.otto.Subscribe;
import java.util.List;
    }

    private void clearGeofence() {
        List<Geofence> geofenceList = geofencingService.getGeofences();
        if (geofenceList != null) {
            for (Geofence geofence : geofenceList) {
                geofencingService.destroyGeofence(geofence.id);
            }
        }
    }

    private void startGeofencing() {
        geofencingService.startGeofencing();
    }

    private void stopGeofencing() {
        geofencingService.stopGeofencing();
    }

    @Subscribe
    public void onInsideGeofenceEvent(InsideGeofenceEvent event) {
        // When device is inside geofence
    }

    @Subscribe
    public void onOutsideGeofenceEvent(OutsideGeofenceEvent event) {
        // When device is outside geofence
    }

    @Subscribe
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/BusProvider.java
// public class BusProvider {
//     private static Bus bus;
// 
//     public static Bus getProvider() {
//         if (bus == null) {
//             bus = new Bus();
//         }
//         return bus;
//     }
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/InsideGeofenceEvent.java
// public class InsideGeofenceEvent {
//     int[] geofenceIdList;
// 
//     public InsideGeofenceEvent() {
//     }
// 
//     public InsideGeofenceEvent(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// 
//     public int[] getGeofenceIdList() {
//         return geofenceIdList;
//     }
// 
//     public void setGeofenceIdList(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/LocationUnavailableEvent.java
// public class LocationUnavailableEvent {
// 
// }
// 
// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/bus/event/OutsideGeofenceEvent.java
// public class OutsideGeofenceEvent {
//     int[] geofenceIdList;
// 
//     public OutsideGeofenceEvent() {
//     }
// 
//     public OutsideGeofenceEvent(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// 
//     public int[] getGeofenceIdList() {
//         return geofenceIdList;
//     }
// 
//     public void setGeofenceIdList(int[] geofenceIdList) {
//         this.geofenceIdList = geofenceIdList;
//     }
// }


// Path: KNOXGeofencingApp/app/src/main/java/com/akexorcist/knoxgeofencingapp/DoSomethingActivity.java
import android.app.enterprise.geofencing.CircularGeofence;
import android.app.enterprise.geofencing.Geofence;
import android.app.enterprise.geofencing.Geofencing;
import android.app.enterprise.geofencing.LatLongPoint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.akexorcist.knoxgeofencingapp.bus.BusProvider;
import com.akexorcist.knoxgeofencingapp.bus.event.InsideGeofenceEvent;
import com.akexorcist.knoxgeofencingapp.bus.event.LocationUnavailableEvent;
import com.akexorcist.knoxgeofencingapp.bus.event.OutsideGeofenceEvent;
import com.squareup.otto.Subscribe;
import java.util.List;

    }

    private void clearGeofence() {
        List<Geofence> geofenceList = geofencingService.getGeofences();
        if (geofenceList != null) {
            for (Geofence geofence : geofenceList) {
                geofencingService.destroyGeofence(geofence.id);
            }
        }
    }

    private void startGeofencing() {
        geofencingService.startGeofencing();
    }

    private void stopGeofencing() {
        geofencingService.stopGeofencing();
    }

    @Subscribe
    public void onInsideGeofenceEvent(InsideGeofenceEvent event) {
        // When device is inside geofence
    }

    @Subscribe
    public void onOutsideGeofenceEvent(OutsideGeofenceEvent event) {
        // When device is outside geofence
    }

    @Subscribe
    public void onLocationUnavailable(LocationUnavailableEvent event) {