package Ġcom . ja ime gc . covid 1 9 tracker . domain . use case Ċ Ċ import Ġarrow . core . Either Ċ import Ġcom . ja ime gc . covid 1 9 tracker . data . repository . Cov id Tracker Repository Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . model . Country One Stats Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . model . Domain Error Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . model . List Country And Stats Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . model . List Country Only Stats Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . states . State Ċ import Ġcom . ja ime gc . covid 1 9 tracker . domain . states . State Error Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ class ĠGet Country Stats ( ĊĠĠĠ Ġprivate Ġval Ġrepository : ĠC ov id Tracker Repository Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġget Country All Stats ( ĊĠĠĠĠĠĠĠ Ġid Country : ĠString ĊĠĠĠ Ġ): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country Only Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . get Country All Stats ( id Country ) ĊĊĠĠĠ Ġfun Ġget Countries Stats OrderBy Confirmed (): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country And Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . getCount ries Stats OrderBy Confirmed () ĊĊĠĠĠ Ġfun Ġget Countries And Stats With Most Confirmed (): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country And Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . getCount ries And Stats With Most Confirmed () ĊĊĠĠĠ Ġfun Ġget Countries And Stats With Most Death s (): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country And Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . getCount ries And Stats With Most Death s () ĊĊĠĠĠ Ġfun Ġget Countries And Stats With Most Re covered (): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country And Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . getCount ries And Stats With Most Re covered () ĊĊĠĠĠ Ġfun Ġget Countries And Stats With Most Open Cases (): ĠFlow < Either < State Error < Domain Error >, ĠState < List Country And Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . getCount ries And Stats With Most Open Cases () ĊĊĠĠĠ Ġfun Ġget Country And Stats By Date ( ĊĠĠĠĠĠĠĠ Ġid Country : ĠString , ĊĠĠĠĠĠĠĠ Ġdate : ĠString ĊĠĠĠ Ġ): ĠFlow < Either < State Error < Domain Error >, ĠState < Country One Stats >>> Ġ= ĊĠĠĠĠĠĠĠ Ġrepository . get Country And Stats By Date ( id Country , Ġdate ) Ċ }