package Ġcom . all sof td roid . feature . book _ details . utils Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . all sof td roid . audio book . feature . feature _ audio book _ en hance _ details . data . model . Book Details Ċ import Ġcom . all sof td roid . audio book . feature . feature _ audio book _ en hance _ details . domain . network . Network Response Listener Ċ import Ġcom . all sof td roid . audio book . feature . feature _ audio book _ en hance _ details . domain . repository . IF etch Addition Book Details Repository Ċ Ċ class ĠFake Fetch Addition Book Details Repository Ġ: ĠIF etch Addition Book Details Repository Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdetails Ġ= ĠMutable LiveData < Book Details >() ĊĠĠĠ Ġprivate Ġvar Ġlistener : ĠNetwork Response Listener ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġfetch Book Details ( book Url : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdetails . value Ġ= ĠBook Details ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnull ," 1 ", book Url ," url ",""," "," ", Ġempty List () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Book Details (): ĠLive Data < Book Details > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdetails ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġregister Network Response ( listener : ĠNetwork Response Listener ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . listener Ġ= Ġlistener ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġun Register Network Response () Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . listener Ġ= Ġnull ĊĠĠĠ Ġ} Ċ }