package jasenmoloy.wirelesscontrol.mvp;

import com.google.android.gms.maps.model.LatLng;

import jasenmoloy.wirelesscontrol.data.GeofenceData;
import jasenmoloy.wirelesscontrol.io.OnGeofenceDataLoadFinishedListener;

/**
 * Created by jasenmoloy on 2/25/16.
 */
public class MainModelImpl implements MainModel {
    /// ----------------------
    /// Class Fields
    /// ----------------------

    public static final GeofenceData[] mTestGeofenceData = {
        new GeofenceData("Home", new LatLng(35.0500, -119.2500), 60.0),
            new GeofenceData("Work", new LatLng(36.0500, -120.2500), 100.0),
            new GeofenceData("Coffee Shop", new LatLng(33.0500, -124.2500), 80.0),
            new GeofenceData("Alex's Place", new LatLng(30.0500, -110.2500), 90.0),

    };

    /// ----------------------
    /// Object Fields
    /// ----------------------

    /// ----------------------
    /// Public Methods
    /// ----------------------

    public void LoadGeofenceData(OnGeofenceDataLoadFinishedListener listener) {
        //JAM TODO: Actually attempt to load some data
        listener.onGeofenceDataLoadSuccess(mTestGeofenceData);
    }

    /// ----------------------
    /// Callback Methods
    /// ----------------------

    /// ----------------------
    /// Protected Methods
    /// ----------------------

    /// ----------------------
    /// Private Methods
    /// ----------------------
}

@@ -500,25 +500,28 @@
 ng(3
-5.0500
+4.051452
 , -11
-9.2500
+8.31262
 ), 6
@@ -521,24 +521,46 @@
 262), 60.0),
+ //1041 S Manhattan Pl
 %0A           
@@ -601,35 +601,57 @@
 ng(3
-6.0500, -120.2500), 100.0),
+7.7885067, -122.3989532), 100.0), //500 Howard St
 %0A   
@@ -681,19 +681,17 @@
 ta(%22
+Mr 
 Coffee
- Shop
 %22, n
@@ -705,34 +705,60 @@
 ng(3
-3.0500, -124.2500), 80.0),
+4.0642398, -118.3115321), 80.0), //537 S Western Ave
 %0A   
@@ -788,12 +788,12 @@
 ta(%22
-Alex
+Lupe
 's P
@@ -815,34 +815,60 @@
 ng(3
-0.0500, -110.2500), 90.0),
+3.930776, -117.338958), 90.0), //1204 Versailles Cir
 %0A%0A  

Convert test data to actual locations for easier view of screen