package Ġtf . sam ir . data . use case Ċ Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġtf . sam ir . domain . entities . Thing Entity Ċ import Ġtf . sam ir . domain . entities . Thing State Ċ import Ġtf . sam ir . domain . repository . Thing Repository Ċ import Ġtf . sam ir . domain . use cases . Get Things UseCase Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠGet Things UseCase Impl Ġ@ Inject Ġconstructor ( private Ġval Ġthing Repository : ĠThing Repository ) Ġ: ĊĠĠĠ ĠGet Things UseCase Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġinvoke (@ Thing State Ġfilter : ĠInt ?): ĠResult < Flow < List < Thing Entity >>> Ġ= ĊĠĠĠĠĠĠĠ Ġkotlin . run Catch ing Ġ{ Ġthing Repository . fetch Things ( filter ) Ġ} Ċ Ċ }