Skip to content

Instantly share code, notes, and snippets.

@fabiothiroki
Created January 23, 2018 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiothiroki/50dc0e6883a87ce07f639b2540f302e9 to your computer and use it in GitHub Desktop.
Save fabiothiroki/50dc0e6883a87ce07f639b2540f302e9 to your computer and use it in GitHub Desktop.
Places Api Mock
class PlacesApiMock: PlacesDatasource {
var requestedLatitude: Double?
var requestedLongitude: Double?
func placesAround(latitude: Double, longitude: Double) -> Observable<LocationPlaces> {
requestedLatitude = latitude
requestedLongitude = longitude
return Observable.of(LocationPlaces())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment