package Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation Ċ Ċ import Ġcom . example . ez ik et ob enna . b aking app . core . di . scope . Feature Scope Ċ import Ġcom . example . ez ik et ob enna . b aking app . presentation . event . View Event Ċ import Ġcom . example . ez ik et ob enna . b aking app . presentation . m vi . ViewState Reducer Ċ import Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation . factory . Recipe Detail Model Factory Ċ import Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation . m vi . Recipe Detail View Result Ċ import Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation . m vi . Recipe Detail View Result . Loaded Data Ċ import Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation . m vi . Recipe Detail View Result . Open Step Info Ċ import Ġcom . example . ez ik et ob enna . b aking app . recipe detail . presentation . m vi . Recipe Detail ViewState Ċ import Ġjavax . inject . Inject Ċ Ċ @ Feature Scope Ċ class ĠRecipe Detail ViewState Reducer Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġrecipe Detail Model Factory : ĠRecipe Detail Model Factory Ċ ) Ġ: ĠView State Reducer < Recipe Detail ViewState , ĠRecipe Detail View Result > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġreduce ( ĊĠĠĠĠĠĠĠ Ġprevious : ĠRecipe Detail ViewState , ĊĠĠĠĠĠĠĠ Ġresult : ĠRecipe Detail View Result ĊĠĠĠ Ġ): ĠRecipe Detail ViewState Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( result ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠLoaded Data Ġ-> Ġhandle Load Data Result ( previous , Ġresult ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠOpen Step Info Ġ-> Ġnavigate To Step Info ( previous , Ġresult ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġnavigate To Step Info ( ĊĠĠĠĠĠĠĠ Ġold State : ĠRecipe Detail ViewState , ĊĠĠĠĠĠĠĠ Ġresult : ĠOpen Step Info ĊĠĠĠ Ġ): ĠRecipe Detail ViewState . Navigate To Step Info Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRecipe Detail ViewState . Navigate To Step Info ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġold State . toolbar Title , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Event ( recipe Detail Model Factory . create Step Info Model ( result . step , Ġresult . steps )) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Load Data Result ( ĊĠĠĠĠĠĠĠ Ġold State : ĠRecipe Detail ViewState , ĊĠĠĠĠĠĠĠ Ġresult : ĠLoaded Data ĊĠĠĠ Ġ): ĠRecipe Detail ViewState Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRecipe Detail ViewState . Success ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġold State . toolbar Title , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecipe Detail Model Factory . make Recipe Detail Model List ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresult . ingredients , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresult . steps ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ