package Ġedu . gate ch . cs 2 3 4 0 . space tr ader redux . domain . use cases Ċ Ċ import Ġedu . gate ch . cs 2 3 4 0 . space tr ader redux . domain . common . GameState Repository Ċ import Ġedu . gate ch . cs 2 3 4 0 . space tr ader redux . domain . common . UseCase Ċ import Ġedu . gate ch . cs 2 3 4 0 . space tr ader redux . domain . entities . Buy Market Place Ċ import Ġio . reactivex . Scheduler Ċ import Ġio . reactivex . Single Ċ Ċ class ĠGet Market Place UseCase ( private Ġval Ġgame State Repository : ĠGameState Repository , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsubscribe Scheduler : ĠScheduler , Ġpost Execution Scheduler : ĠScheduler ) Ġ: ĊĠĠĠĠĠĠĠ ĠUse Case < Buy Market Place , ĠInt >( subscribe Scheduler , Ġpost Execution Scheduler ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġbuild UseCase Single ( params : ĠInt ?): ĠSingle < Buy Market Place > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġgame Ġ= Ġgame State Repository . get GameState ById ( 0 ) ĊĠĠĠĠĠĠĠ Ġreturn Ġgame . map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn @ map ĠBu y Market Place ( it . player State . curr Planet , Ġit . player State ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }