Created
May 15, 2017 11:09
-
-
Save moosebay/62ede630a24596962edf460fc5ff432f to your computer and use it in GitHub Desktop.
GeoFire DataService
This file contains hidden or 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
let DB_BASE = FIRDatabase.database().reference().child(Salada.Object._version) | |
class DataService { | |
static let ds = DataService() | |
private var _GEO_POST_LOCATION = DB_BASE.child("postLocation") | |
var GEO_POST_LOCATION: GeoFire { | |
return GeoFire(firebaseRef: _GEO_POST_LOCATION) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment