package Ġcom . nik it am as lov . data . repository Ċ Ċ import Ġcom . nik it am as lov . data . mapper . map To Location Ċ import Ġcom . nik it am as lov . data . mapper . map To Location Object Ċ import Ġcom . nik it am as lov . data . storage . Storage Ċ import Ġcom . nik it am as lov . domain . model . Location Ċ import Ġcom . nik it am as lov . domain . repository . Location Repository Ċ import Ġkotlinx . coroutines . channels . Receive Channel Ċ import Ġkotlinx . coroutines . channels . map Ċ Ċ internal Ġclass ĠLocation Repository Impl ( private Ġval Ġstorage : ĠStorage ) Ġ: ĠLocation Repository Ġ{ ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġreceive Location (): ĠReceive Channel < Location ?> Ġ= ĊĠĠĠĠĠĠĠ Ġstorage . receive Location (). map Ġ{ Ġit ?. map To Location () Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġset Location ( location : ĠLocation ) Ġ{ ĊĠĠĠĠĠĠĠ Ġstorage . insert Or Replace Location ( location . map To Location Object ()) ĊĠĠĠ Ġ} Ċ }