package Ġcom . wis nu . k urn i awan . comp o set od olist . features . todo . group list . data Ċ Ċ import Ġcom . wis nu . k urn i awan . comp o set od olist . foundation . datasource . local . Local Manager Ċ import Ġcom . wis nu . k urn i awan . comp o set od olist . foundation . wrapper . DateTime Provider Ċ import Ġcom . wis nu . k urn i awan . comp o set od olist . model . GroupId With List Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠUpdate Group List Environment Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġlocal Manager : ĠLocal Manager , ĊĠĠĠ Ġoverride Ġval ĠdateTime Provider : ĠDateTime Provider Ċ ) Ġ: ĠI Update Group List Environment Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetList With Un Group List ( groupId : ĠString ): ĠFlow < List < GroupId With List >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġlocal Manager . getList With Un Group List ( groupId ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġupdate List ( data : ĠList < GroupId With List >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġupdate Ġ= Ġdata . map Ġ{ Ġit . copy ( list Ġ= Ġit . list . copy ( updatedAt Ġ= ĠdateTime Provider . now ())) Ġ} ĊĠĠĠĠĠĠĠ Ġlocal Manager . update List ( update ) ĊĠĠĠ Ġ} Ċ } Ċ