package Ġio . scal . command based architecture . sample _ coroutine . ui . details Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġio . scal . command based architecture . sample _ coroutine . ui . list . UI Main Item Ċ Ċ abstract Ġclass ĠDetails ViewModel ( application : ĠApplication ) Ġ: ĠAndroid ViewModel ( application ) Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġitem Uid : ĠString ĊĊĠĠĠ Ġabstract Ġval Ġscreen State : ĠLive Data < Details Screen State > ĊĊĠĠĠ Ġabstract Ġfun Ġreload () ĊĊĠĠĠ Ġabstract Ġfun ĠaddTo Favorite ( item : ĠU IM ain Item ) ĊĊĠĠĠ Ġabstract Ġfun Ġremove From Favorite ( item : ĠU IM ain Item ) Ċ }