|
|
|
@ -9,8 +9,9 @@ import retrofit2.http.GET
|
|
|
|
|
import retrofit2.http.Headers
|
|
|
|
|
import retrofit2.http.Path
|
|
|
|
|
|
|
|
|
|
class CollectionLoader(interceptors: List<Interceptor>) :
|
|
|
|
|
BaseObserve<CollectionLoader.CollectionApi>(CollectionApi::class.java, interceptors) {
|
|
|
|
|
class CollectionLoader : BaseObserve<CollectionLoader.CollectionApi> {
|
|
|
|
|
constructor() : super(CollectionApi::class.java)
|
|
|
|
|
constructor(interceptors: List<Interceptor>) : super(CollectionApi::class.java, interceptors)
|
|
|
|
|
|
|
|
|
|
fun getCollections(pageName: Int, callBack: RequestCallBack<CollectionResponse>) {
|
|
|
|
|
observe(api?.getCollections(pageName), callBack)
|
|
|
|
|