/* Ċ Ġ* ĠH ab ib ĠMust of a Ġon Ġ 1 6 / 1 0 / 1 9 Ċ Ġ* Ġhttps :// must of a . id Ċ Ġ*/ Ċ package Ġid . must of a . paging ret rofit . data . repository Ċ Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . paging . DataSource Ċ import Ġid . must of a . paging ret rofit . data . Movie Ċ import Ġid . must of a . paging ret rofit . data . source . remote . Movie Service Ċ import Ġkotlinx . coroutines . Coroutine Scope Ċ Ċ class ĠMovie DataSource Factory ( ĊĠ Ġprivate Ġval Ġmovie Service : ĠMovie Service , ĊĠ Ġprivate Ġval Ġscope : ĠCor outine Scope Ċ ) Ġ: ĠDataSource . Factory < Int , ĠMovie >() Ġ{ ĊĊĠ Ġval Ġsource LiveData Ġ= ĠMutable LiveData < Page Key ed Movie DataSource >() ĊĊĠ Ġoverride Ġfun Ġcreate (): ĠDataSource < Int , ĠMovie > Ġ{ ĊĠĠĠ Ġval Ġsource Ġ= ĠPage Key ed Movie DataSource ( movie Service , Ġscope ) ĊĠĠĠ Ġsource LiveData . post Value ( source ) ĊĠĠĠ Ġreturn Ġsource ĊĠ Ġ} Ċ }