package Ġcom . ra hu log raf y . jc posts . data . source . remote . posts . datasource Ċ Ċ import Ġcom . ra hu log raf y . jc posts . data . repo . posts . Posts DataSource Ċ import Ġcom . ra hu log raf y . jc posts . data . source . local . posts . model . Post Entity Ċ import Ġcom . ra hu log raf y . jc posts . data . source . remote . posts . service . Posts Remote Service Ċ import Ġcom . ra hu log raf y . jc posts . di . Application Scoped Ċ import Ġio . reactivex . Single Ċ import Ġjavax . inject . Inject Ċ Ċ @ Application Scoped Ċ class ĠPosts Remote DataSource Ċ @ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġposts Remote Service : ĠPosts Remote Service Ċ ) Ġ: ĠPosts DataSource Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Posts (): ĠSingle < List < Post Entity >> Ġ= Ġposts Remote Service . get Posts () ĊĊĠĠĠ Ġ// ĠTODO Ġ| ĠRETURN ĠVALUE ĠIS ĠMOCK ED ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġsync Pending Posts ( posts : ĠList < Post Entity >) Ġ= Ġtrue Ċ }