package Ġch . d re ip ol . multi platform . redux sample . shared . ui Ċ Ċ import Ġch . d re ip ol . d re im ulti platform . redux kotlin . root Dispatch Ċ import Ġch . d re ip ol . multi platform . redux sample . shared . redux . thunk . set New Zip Thunk Ċ Ċ data Ġclass ĠZip Settings ViewState ( ĊĠĠĠ Ġval Ġheader ViewState : ĠHeader ViewState Ġ= ĠHeader ViewState (" settings _ zip "), ĊĠĠĠ Ġval Ġenter Zip ViewState : ĠEnter Zip ViewState Ġ= ĠEnter Zip ViewState () Ċ ) Ċ Ċ interface ĠZip Settings View Ġ: ĠBase View Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġpresenter () Ġ= Ġzip Settings Presenter ĊĊĠĠĠ Ġfun Ġrender ( zip Settings ViewState : ĠZip Settings ViewState ) Ċ } Ċ Ċ val Ġzip Settings Presenter Ġ= Ġpresenter < Zip Settings View > Ġ{ ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġselect ({ Ġit . settings ViewState . zip Settings ViewState Ġ}) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġview State Ġ= Ġstate . settings ViewState . zip Settings ViewState ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrender ( view State ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġselected Zip Ġ= Ġview State . enter Zip ViewState . selected Zip ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( state . settings State . state ?. settings ?. zip Ġ!= Ġselected Zip Ġ&& Ġview State . enter Zip ViewState . invalid Zip . not ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġselected Zip ?. let Ġ{ Ġroot Dispatch ( set New Zip Thunk ( it )) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }