package Ġcom . kick starter . ui . view holders Ċ Ċ import Ġcom . kick starter . databinding . Item Environment al Commit ments Card Binding Ċ import Ġcom . kick starter . libs . rx . transformers . Transform ers Ċ import Ġcom . kick starter . models . Environment al Commit ment Ċ import Ġcom . kick starter . view models . Environment al Commit ments ViewHolder ViewModel Ċ Ċ class ĠEnvironment al Commit ments ViewHolder ( ĊĠĠĠ Ġval Ġbinding : ĠItem Environment al Commit ments Card Binding , Ċ ) Ġ: ĠK S ViewHolder ( binding . root ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠEnvironment al Commit ments ViewHolder ViewModel . ViewModel Ġ= ĊĠĠĠĠĠĠĠ ĠEnvironment al Commit ments ViewHolder ViewModel . ViewModel ( environment ()) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel . outputs . description () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( bind To Lifecycle ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( Transform ers . observe For UI ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe Ġ{ Ġbinding . environment al Commit ments Card . setDescription ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ ĠviewModel . outputs . category () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( bind To Lifecycle ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. compose ( Transform ers . observe For UI ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe Ġ{ Ġbinding . environment al Commit ments Card . set Category Title ( it ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġbind Data ( data : ĠAny ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . viewModel . inputs . configure With ( data Ġas ĠEnvironment al Commit ment ) ĊĠĠĠ Ġ} Ċ } Ċ