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