Created
April 18, 2019 22:08
-
-
Save LukyanovAnatoliy/fb4648553e3017342618396e6a2d49fa to your computer and use it in GitHub Desktop.
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
val taskData = HashMap<String, Any>() | |
taskData["title"] = task.title | |
taskData["created"] = Timestamp(task.created.time / 1000, 0) | |
remoteDB.collection("Tasks") | |
.document("New task") | |
.set(taskData) | |
.addOnSuccessListener { | |
// Successful write | |
} | |
.addOnFailureListener { | |
// There was an error while writing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment