1 package com.airbnb.lottie.samples 2 3 import com.airbnb.lottie.samples.model.AnimationResponse 4 import io.reactivex.Observable 5 import retrofit2.http.GET 6 import retrofit2.http.Path 7 import retrofit2.http.Query 8 9 interface LottiefilesService { 10 @GET("recent") getRecentnull11 fun getRecent(@Query("page") page: Int): Observable<AnimationResponse> 12 13 @GET("popular") 14 fun getPopular(@Query("page") page: Int): Observable<AnimationResponse> 15 16 @GET("collections/{collection}") 17 fun getCollection(@Path("collection") collection: String): Observable<AnimationResponse> 18 19 @GET("search/{query}") 20 fun search(@Path("query") query: String): Observable<AnimationResponse> 21 }