package Ġcom . god a . em en joy . domain ĊĊ Ċ import Ġcom . god a . em en joy . domain . common . Single UseCase Ċ import Ġcom . god a . em en joy . model . data . Video Dao Ċ import Ġcom . god a . em en joy . model . data _ model . Video Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ Ċ class ĠGet Video Ġ Ġconstructor ( private Ġval Ġdao : ĠVideo Dao ) Ġ: ĊĠĠĠ ĠSingle UseCase < Int , Video >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġbuild ( params : ĠInt ): ĠSingle < Video > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdao . get Video ( params ). subscribe On ( Schedulers . io ()). observe On ( Android Schedulers . main Thread ()) ĊĠĠĠ Ġ} Ċ }