ron
04/09/2019, 7:06 PMclass StoryModel : ItemViewModel<StoryGL>() {
// val chapters = bind(Story::chapters)
val author=AuthorModel()
val types = bind(StoryGL::types)
val synopsis = bind(StoryGL::synopsis)
val title = bind(StoryGL::title)
}
init {
subscribe<storyenrichedEvent> {
model.item = it.story
model.author.item = it.story.author
}
}