Skip to content

Instantly share code, notes, and snippets.

@oogatta
Created October 2, 2017 15:35
Show Gist options
  • Save oogatta/9f7d2a96399a70a4fb56ce29cac00c39 to your computer and use it in GitHub Desktop.
Save oogatta/9f7d2a96399a70a4fb56ce29cac00c39 to your computer and use it in GitHub Desktop.
FirebaseDatabase.getInstance().reference.child("test").child("Android").apply {
setValue(null)
push().setValue(mapOf("hoge" to 1, "fuga" to 5))
push().setValue(mapOf("hoge" to 2, "fuga" to 4))
push().setValue(mapOf("hoge" to 3, "fuga" to 3))
push().setValue(mapOf("hoge" to 4, "fuga" to 2))
push().setValue(mapOf("hoge" to 5, "fuga" to 1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment