package Ġet . a ait . it sc . abd use lam . us sd registration . repository Ċ Ċ import Ġet . a ait . it sc . abd use lam . us sd registration . data . Region al V oter Ċ import Ġet . a ait . it sc . abd use lam . us sd registration . data . Region al V oter ApiService Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . with Context Ċ import Ġretrofit 2 . Response Ċ Ċ class ĠReg ional V oter Repository ( private Ġval Ġregion al V oter ApiService : ĠReg ional V oter ApiService ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġget Region al V oter By PhoneNumber ( phone : ĠString ): ĠResponse < Region al V oter > Ġ= ĊĠĠĠĠĠĠĠ Ġwith Context ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregion al V oter ApiService . get Region al V oter By PhoneNumber ( phone ). await () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert Region al V oter ( region al V oter : ĠReg ional V oter ): ĠResponse < Region al V oter > Ġ= ĊĠĠĠĠĠĠĠ Ġwith Context ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregion al V oter ApiService . insert Region al V oter ( region al V oter ). await () ĊĠĠĠĠĠĠĠ Ġ} Ċ }