package Ġcom . jam ie ad k ins . gw ent . domain . deck Ċ Ċ import Ġcom . jam ie ad k ins . gw ent . domain . Scheduler Provider Ċ import Ġcom . jam ie ad k ins . gw ent . domain . deck . repository . Deck Repository Ċ import Ġio . reactivex . Comp letable Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠDelete Deck UseCase Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġdeck Repository : ĠDeck Repository , ĊĠĠĠ Ġprivate Ġval Ġscheduler Provider : ĠScheduler Provider Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġdelete ( deck Id : ĠString ): ĠComp letable Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdeck Repository . delete Deck ( deck Id ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( scheduler Provider . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( scheduler Provider . ui ()) ĊĠĠĠ Ġ} Ċ }