package Ġde . met zg ore . be ansp lan . util Ċ Ċ import Ġandroid . arch . lifecycle . LiveData Ċ import Ġandroid . arch . lifecycle . Mutable LiveData Ċ import Ġde . met zg ore . be ansp lan . api . ApiResponse Ċ import Ġretrofit 2 . Response Ċ Ċ object ĠApi Util Ġ{ ĊĠĠĠ Ġfun Ġ< T Ġ: ĠAny > Ġsuccess Call ( data : ĠT ) Ġ= Ġcreate Call ( Response . success ( data )) ĊĊĠĠĠ Ġfun Ġ< T Ġ: ĠAny > Ġcreate Call ( response : ĠResponse < T >) Ġ= ĠMutable LiveData < ApiResponse < T >> (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġvalue Ġ= ĠApiResponse . create ( response ) ĊĠĠĠ Ġ} Ġas ĠLive Data < ApiResponse < T >> Ċ }