Created
December 3, 2016 08:21
-
-
Save kostovtd/e42b12240d05c9ef380c454303c9315b to your computer and use it in GitHub Desktop.
Model Layer for GeofencingExample app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.android.gms.location.Geofence; | |
import com.google.android.gms.maps.model.LatLng; | |
/** | |
* Just a dummy container class in order to | |
* collect {@link com.google.android.gms.location.Geofence} | |
* and {@link com.google.android.gms.maps.model.LatLng} in one entity | |
*/ | |
public class CompanyLocation { | |
private LatLng coordinates; | |
private Geofence geofence; | |
public CompanyLocation(LatLng coordinates, Geofence geofence) { | |
this.coordinates = coordinates; | |
this.geofence = geofence; | |
} | |
public LatLng getCoordinates() { | |
return coordinates; | |
} | |
public void setCoordinates(LatLng coordinates) { | |
this.coordinates = coordinates; | |
} | |
public Geofence getGeofence() { | |
return geofence; | |
} | |
public void setGeofence(Geofence geofence) { | |
this.geofence = geofence; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment