package Ġcom . indo . news . data . source . remote Ċ Ċ import Ġandroidx . paging . Pager Ċ import Ġandroidx . paging . Paging Config Ċ import Ġandroidx . paging . Paging Data Ċ import Ġcom . indo . news . data . model . Article Ċ import Ġcom . indo . news . data . model . News Ċ import Ġcom . indo . news . data . source . paging . News Category Paging Ċ import Ġcom . indo . news . services . network . News Service Ċ import Ġcom . indo . news . utils . constant . Constants Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠRemote Repository Ġ@ Inject Ġconstructor ( private Ġval Ġservice : ĠNews Service ) Ġ{ ĊĠĠĠ Ġfun Ġget New sBy Category ( category : ĠString ): ĠFlow < Paging Data < Article >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠP ager ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġconfig Ġ= ĠP aging Config ( pageSize Ġ= ĠConstants . PAGE _ SIZE ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpaging Source Factory Ġ= Ġ{ ĠNews Category Paging ( service , Ġcategory ) Ġ}). flow ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget Recommended News (): ĠNews Ġ= Ġservice . get Recommended News () Ċ }