package Ġio . github . ital by tz . adapters . meal Ċ Ċ import Ġio . github . ital by tz . infrastructure . open mens a . Mens aC losed Exception Ċ import Ġio . github . ital by tz . infrastructure . open mens a . No Me als For Date Exception Ċ import Ġio . github . ital by tz . infrastructure . open mens a . Open Mens a Service Ċ import Ġio . github . ital by tz . ports . meal . Add it ives Ċ import Ġio . github . ital by tz . ports . meal . All erg ens Ċ import Ġio . github . ital by tz . ports . meal . Category Ċ import Ġio . github . ital by tz . ports . meal . Me al Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . with Context Ċ Ċ class ĠOpen Mens a Me al DataSource ( val Ġmens a : ĠLong , Ġval Ġdate : Ġjava . time . LocalDate ) Ġ: Ġio . github . ital by tz . ports . common . DataSource < Int , Me al > Ġ{ ĊĊĠĠĠ Ġval Ġapi Ġ= ĠOpen Mens a Service () ĊĠĠĠ Ġval Ġformatter Ġ= Ġjava . time . format . DateTime Formatter . of Pattern (" yyyy - MM - dd ") ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġretrieve ( id : ĠInt ): ĠMe al Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠNotImplementedError () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġretrieve All (): ĠList < Me al > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwith Context ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġapi . get Me als ( mens a , Ġdate . format ( formatter )). execute (). body () !! ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ Ġit . to Me al () Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġio . github . ital by tz . infrastructure . open mens a . Me al . to Me al () Ġ: ĠMe al Ġ{ ĊĠĠĠ Ġvar Ġcategory Ġ= Ġwhen ( this . category ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ" D ess erts " Ġ-> ĠCategory . DES SERT ĊĠĠĠĠĠĠĠ Ġ" Be il agen " Ġ-> ĠCategory . SID ED ISH ĊĠĠĠĠĠĠĠ Ġelse Ġ-> ĠCategory . DIS H ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn ĠOpen Mens a Me al ( this . name ," ", ĊĠĠĠĠĠĠĠ ĠOpen Mens a Price ( this . prices . employees , Ġthis . prices . others , Ġthis . prices . pup ils , Ġthis . prices . students ), ĊĠĠĠĠĠĠĠ Ġjava . util . Enum Set . none Of ( All erg ens :: class . java ), Ġjava . util . Enum Set . none Of ( Add it ives :: class . java ), Ġcategory ) Ċ }