package Ġcom . get your guide . ber lint ours . reviews . repository Ċ Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . paging . DataSource Ċ import Ġcom . get your guide . ber lint ours . reviews . api . Get Your Guide Api Ċ import Ġcom . get your guide . ber lint ours . reviews . api . Request Params Ċ import Ġcom . get your guide . ber lint ours . reviews . models . Review Ċ import Ġcom . get your guide . ber lint ours . reviews . repository . in Memory . Review DataSource Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġ[ Jan ĠR abe ]( https :// about . me / jan r abe ). Ċ Ġ*/ Ċ Ċ class ĠReview DataSource Factory ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġrequest Params : ĠRequest Params , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġcomposite Disposable : ĠComposite Disposable , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġnetwork Service : ĠGet Your Guide Api ) ĊĠĠĠ Ġ: ĠDataSource . Factory < Int , ĠReview >() Ġ{ ĊĊĠĠĠ Ġval Ġreview DataSource LiveData Ġ= ĠMutable LiveData < Review DataSource >() ĊĊĠĠĠ Ġoverride Ġfun Ġcreate (): ĠDataSource < Int , ĠReview ?> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnews DataSource Ġ= ĠReview DataSource ( request Params , Ġnetwork Service , Ġcomposite Disposable ) ĊĠĠĠĠĠĠĠ Ġreview DataSource LiveData . post Value ( news DataSource ) ĊĠĠĠĠĠĠĠ Ġreturn Ġnews DataSource ĊĠĠĠ Ġ} Ċ }