public static GeofenceLocation get(Location location) { GeofenceLocation geofenceLocation = new GeofenceLocation(location); geofenceLocation.RequestId = Guid.NewGuid().ToString().Replace("-",""); geofenceLocation.LoiteringTime = LOITERING_TIME; geofenceLocation.GeofenceTransactionType = DEFAULT_TRANSACTION_TYPE; geofenceLocation.ExpirationTime = EXPIRATION_TIME; return geofenceLocation; }
public GeofenceLocation(Location location) { this.latitude = location.latitude; this.longitude = location.longitude; this.locationName = location.locationName; this.city = location.city; this.radius = location.radius; this.rating = location.rating; this.description = location.description; }