package Ġcom . rich ar dd ap ice . medi ab rowser . repository Ċ Ċ import Ġcom . rich ar dd ap ice . medi ab rowser . model . Media List Ċ import Ġcom . rich ar dd ap ice . medi ab rowser . network . Media Service Ċ import Ġcom . rich ar dd ap ice . medi ab rowser . util . Constants . Companion . API _ REFRESH _ M ILL IS Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . delay Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . flow Ċ import Ġkotlinx . coroutines . flow . flow On Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠMedia Repository Ġ@ Inject Ġconstructor ( private Ġval Ġservice : ĠMedia Service ) Ġ{ ĊĠĠĠ Ġfun Ġget Trend ing Movies (): ĠFlow < Media List > Ġ= Ġflow Ġ{ ĊĠĠĠĠĠĠĠ Ġemit ( service . trend ing Movies ()) ĊĠĠĠĠĠĠĠ Ġdelay ( API _ REFRESH _ M ILL IS ) ĊĠĠĠ Ġ}. flow On ( Dispatch ers . IO ) ĊĊĠĠĠ Ġfun Ġget Trend ing Shows (): ĠFlow < Media List > Ġ= Ġflow Ġ{ ĊĠĠĠĠĠĠĠ Ġemit ( service . trend ing Shows ()) ĊĠĠĠĠĠĠĠ Ġdelay ( API _ REFRESH _ M ILL IS ) ĊĠĠĠ Ġ}. flow On ( Dispatch ers . IO ) ĊĊĠĠĠ Ġfun Ġget Trend ing Today (): ĠFlow < Media List > Ġ= Ġflow Ġ{ ĊĠĠĠĠĠĠĠ Ġemit ( service . trend ing Today ()) ĊĠĠĠĠĠĠĠ Ġdelay ( API _ REFRESH _ M ILL IS ) ĊĠĠĠ Ġ}. flow On ( Dispatch ers . IO ) Ċ } Ċ