/* Ċ Ġ* ĠCopyright Ġ 2 0 1 9 ĠGoogle ĠLLC Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġapp . t ivi . inter actors Ċ Ċ import Ġandroidx . paging . Paged List Ċ import Ġandroidx . paging . Rx Paged List Builder Ċ import Ġapp . t ivi . data . repositories . trend ing shows . Trend ing Shows Repository Ċ import Ġapp . t ivi . data . result entities . Trend ing Entry With Show Ċ import Ġapp . t ivi . util . App Rx Schedulers Ċ import Ġio . reactivex . Observable Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠOb serve Paged Trend ing Shows Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġs chedulers : ĠApp Rx Schedulers , ĊĠĠĠ Ġprivate Ġval Ġtrend ing Shows Repository : ĠT rend ing Shows Repository Ċ ) Ġ: ĠP aging Interactor < Ob serve Paged Trend ing Shows . Params , ĠT rend ing Entry With Show >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate Observable ( params : ĠParams ): ĠObservable < Paged List < Trend ing Entry With Show >> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsource Ġ= Ġtrend ing Shows Repository . observe For Paging () ĊĠĠĠĠĠĠĠ Ġreturn ĠRx Paged List Builder ( source , Ġparams . paging Config ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Boundary Callback ( params . boundary Callback ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Fetch Scheduler ( schedul ers . io ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Notify Scheduler ( schedul ers . main ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build Observable () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdata Ġclass ĠParams ( ĊĠĠĠĠĠĠĠ Ġoverride Ġval Ġpaging Config : ĠP aged List . Config , ĊĠĠĠĠĠĠĠ Ġoverride Ġval Ġboundary Callback : ĠP aged List . Boundary Callback < Trend ing Entry With Show >? ĊĠĠĠ Ġ) Ġ: ĠParameters < Trend ing Entry With Show > Ċ } Ċ