Skip to content

Instantly share code, notes, and snippets.

@illuzor
Last active September 15, 2018 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illuzor/221cba620367a716f2365f99fb2d1c64 to your computer and use it in GitHub Desktop.
Save illuzor/221cba620367a716f2365f99fb2d1c64 to your computer and use it in GitHub Desktop.
package com.illuzor.lesson.wallpapers.api
import com.illuzor.lesson.wallpapers.model.Category
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface WallpapersApi {
@GET("categories.php")
fun categories(): Call<List<Category>>
@GET("gallery.php")
fun gallery(@Query("gallery") galleryName: String): Call<List<String>>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment