Skip to content

Instantly share code, notes, and snippets.

@pawegio
Last active January 22, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawegio/dc9d51e0d1779da67c51601065a2e4e2 to your computer and use it in GitHub Desktop.
Save pawegio/dc9d51e0d1779da67c51601065a2e4e2 to your computer and use it in GitHub Desktop.
data class Report(val uuid: String, val name: String, val date: Long)
fun loadReport(uuid: String) {
api.getReport(uuid) { (_, name, date) ->
reportView.text = name
dateView.text = formatDate(date)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment