package Ġkr . co . domain . api . use case Ċ Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ import Ġkr . co . data . response . All Video Result Response Ċ import Ġkr . co . data . response . SearchResult Video Response Ċ import Ġkr . co . domain . api . service . File Service Ċ import Ġkr . co . domain . k oin . repository . remote . Ret rofit Repository Ċ Ċ class ĠPost Video Search List UseCase ( ret rofit Repository : ĠRet rofit Repository ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġfile Service Ġ= Ġretrofit Repository ĊĠĠĠĠĠĠĠ Ġ. get Ret rofit () ĊĠĠĠĠĠĠĠ Ġ. create ( File Service :: class . java ) ĊĊĠĠĠ Ġfun Ġpost Video Search List ( pageSize : ĠInt , Ġpage Num : ĠInt ) Ġ: ĠSingle < SearchResult Video Response > Ġ= Ġfile Service ĊĠĠĠĠĠĠĠ Ġ. post Video Search List ( pageSize , Ġpage Num ) ĊĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) Ċ }