Skip to content

Instantly share code, notes, and snippets.

@dhruvtaneja
Last active June 23, 2018 12:14
Show Gist options
  • Save dhruvtaneja/87ec4e782990b8ebd11b01e4cddd9660 to your computer and use it in GitHub Desktop.
Save dhruvtaneja/87ec4e782990b8ebd11b01e4cddd9660 to your computer and use it in GitHub Desktop.
app home viewmodel
val segmentsViewModels: ObservableArrayList<AppSegmentViewModel> = ObservableArrayList()
private fun getViewModelsFromSegments(appSegments: ArrayList<AppSegment>): ArrayList<AppSegmentViewModel> {}
private fun loadAppSegments() {
// get the app segments
segmentsViewModels.addAll(getViewModelsFromSegments(appSegments))
}
fun start() {
loadAppSegments()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment