package Ġru . alex sk v ort so v . p olic lin ic . data . service Ċ Ċ import Ġio . reactivex . Comp letable Ċ import Ġru . alex sk v ort so v . p olic lin ic . data . storage . database . dao . Consult ation Dao Ċ import Ġru . alex sk v ort so v . p olic lin ic . data . system . schedul ers . Scheduler Ċ import Ġru . alex sk v ort so v . p olic lin ic . domain . repository . Cancel Consult ation Repository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠCancel Consult ation Service Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġconsult ation Dao : ĠConsult ation Dao , ĊĠĠĠ Ġprivate Ġval Ġscheduler : ĠScheduler Ċ ) Ġ: ĠCancel Consult ation Repository Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcancel Consult ation ( consult ation Id : ĠString ): ĠComp letable Ġ= Ġconsult ation Dao . marks Cancelled ( consult ation Id ) ĊĠĠĠĠĠĠĠ Ġ. subscribe On ( scheduler . io ()) ĊĠĠĠĠĠĠĠ Ġ. observe On ( scheduler . ui ()) Ċ }