Skip to content

Instantly share code, notes, and snippets.

@kikermo
Last active December 19, 2018 09:13
Show Gist options
  • Save kikermo/091e9beed4e04d3dd1d325c1e38447f8 to your computer and use it in GitHub Desktop.
Save kikermo/091e9beed4e04d3dd1d325c1e38447f8 to your computer and use it in GitHub Desktop.
Simple Firestore
data class MyFirebaseModel(val aProperty: Int):FirebaseIdentifiableModel()
firebaseFirestore.getFirebaseList<MyFirebaseModel>(path = "mymodel")
.map{ ... } // Maybe map to a non firebase specific model
.subscribeOn(...)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment