Created
January 23, 2018 01:58
-
-
Save fabiothiroki/50dc0e6883a87ce07f639b2540f302e9 to your computer and use it in GitHub Desktop.
Places Api Mock
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
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