package Ġcom . v ital i imal one . short ter mpl anner . domain . use cases Ċ Ċ import Ġcom . v ital i imal one . short ter mpl anner . data . repository . Task Repository Ċ import Ġcom . v ital i imal one . short ter mpl anner . domain . map pers . Task Entity Mapper Ċ import Ġcom . v ital i imal one . short ter mpl anner . domain . models . Task Ċ import Ġorg . th reet en . bp . Offset DateTime Ċ Ċ class ĠUpdate Task UseCase ( ĊĠĠĠ Ġprivate Ġval Ġtask Repository : ĠTask Repository Ċ ) Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġupdate Tasks ( tasks : ĠList < Task >) Ġ{ ĊĠĠĠĠĠĠĠ Ġtasks . forEach Ġ{ Ġit . modified At Ġ= ĠOffset DateTime . now () Ġ} ĊĠĠĠĠĠĠĠ Ġval Ġtask Entities Ġ= Ġtasks . map ( Task Entity Mapper :: map ) ĊĠĠĠĠĠĠĠ Ġtask Repository . update Tasks ( task Entities ) ĊĠĠĠ Ġ} Ċ }