package Ġcom . friends app . github . repository Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Transform ations Ċ import Ġcom . friends app . github . database . Users Database Ċ import Ġcom . friends app . github . database . as Domain Model Ċ import Ġcom . friends app . github . domain . UserDetails Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠUser Details Repository Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġdatabase : ĠUsers Database Ċ ) Ġ{ ĊĊĠĠĠ Ġfun ĠgetUser Details ( userId : ĠInt ): ĠLive Data < UserDetails > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠTransform ations . map ( database . users Dao . getUser Details ( userId )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit ?. as Domain Model () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊ Ċ }