Skip to content

Instantly share code, notes, and snippets.

@kostovtd
Created December 3, 2016 08:21
Show Gist options
  • Save kostovtd/e42b12240d05c9ef380c454303c9315b to your computer and use it in GitHub Desktop.
Save kostovtd/e42b12240d05c9ef380c454303c9315b to your computer and use it in GitHub Desktop.
Model Layer for GeofencingExample app
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