package Ġcom . tr ux all . every day animation . data Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . LiveData ĊĊ Ċ class ĠArtist Repository Ġinternal Ġconstructor ( application : ĠApplication ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġartist Dao : ĠArtist Dao ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdb Ġ= ĠArtist Database . get Database ( application ) ĊĠĠĠĠĠĠĠ Ġartist Dao Ġ= Ġdb !!. artist Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġall Art ists (): ĠLive Data < List < Artist >> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġall Ġ= Ġartist Dao . get Art ists () ĊĠĠĠĠĠĠĠ Ġreturn Ġall ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġalbum s ById ( artist Id : ĠInt ): ĠLive Data < List < Album >> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġalbum s Ġ= Ġartist Dao . get Album s ( artist Id ) ĊĠĠĠĠĠĠĠ Ġreturn Ġalbum s ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġartist ById ( artist Id : ĠInt ): ĠLive Data < Artist > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġartist Dao . get Artist ById ( artist Id ) ĊĠĠĠ Ġ} Ċ }