package Ġdev . ey os iy as . sms block er . repository Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġdev . ey os iy as . sms block er . dao . Black list Dao Ċ import Ġdev . ey os iy as . sms block er . model . Black list Ċ Ċ class ĠBlack list Repository ( private Ġval Ġblacklist Dao : ĠBlack list Dao ) Ġ{ ĊĠĠĠ Ġval Ġblack lists : ĠLive Data < List < Black list >> Ġ= Ġblacklist Dao . black lists () ĊĠĠĠ Ġsuspend Ġfun Ġadd Black list ( blacklist : ĠBlack list ) Ġ{ ĊĠĠĠĠĠĠĠ Ġblacklist Dao . add Black list ( blacklist ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġupdate Black list ( blacklist : ĠBlack list ) Ġ{ ĊĠĠĠĠĠĠĠ Ġblacklist Dao . update Black list ( blacklist ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Black list ( blacklist : ĠBlack list ) Ġ{ ĊĠĠĠĠĠĠĠ Ġblacklist Dao . delete Black list ( blacklist ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Black lists () Ġ{ ĊĠĠĠĠĠĠĠ Ġblacklist Dao . delete Black lists () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġexists ( input : ĠString ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġblacklist Dao . exists ( input ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġblacklist Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġblacklist Dao . blacklist Count () ĊĠĠĠ Ġ} Ċ }