package Ġcom . z iz oh . ule sson . dashboard . presentation . chapter Ċ Ċ import Ġandroidx . h ilt . lifecycle . ViewModel Inject Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . z iz oh . ule sson . dashboard . presentation . Chapter StateMachine Ċ import Ġcom . z iz oh . ule sson . dashboard . presentation . chapter . m vi . Chapter View Intent Ċ import Ġcom . z iz oh . ule sson . dashboard . presentation . chapter . m vi . Chapter ViewState Ċ import Ġcom . z iz oh . ule sson . presentation . m vi . MV IP res enter Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . launch In Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġz iz oh Ġon Ġ 1 9 / January / 2 0 2 1 . Ċ Ġ*/ Ċ Ċ class ĠChapter ViewModel Ġ@ ViewModel Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġchapter StateMachine : ĠChapter StateMachine Ċ ) Ġ: ĠViewModel (), ĠMV IP res enter < Chapter ViewState , ĠChapter View Intent > Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġview State : ĠFlow < Chapter ViewState > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġchapter StateMachine . view State ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġchapter StateMachine . processor . launch In ( viewModel Scope ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġprocess Intent ( int ents : ĠFlow < Chapter View Intent >) Ġ{ ĊĠĠĠĠĠĠĠ Ġchapter StateMachine ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. process Intent s ( int ents ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. launch In ( viewModel Scope ) ĊĠĠĠ Ġ} Ċ }