Skip to content

Instantly share code, notes, and snippets.

@GauravChaddha1996
Created January 30, 2021 17:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
interface SomeApiService {
@GET("some_end_point")
fun getApiEndpointData(@QueryMap map:Map<String,String>): Call<ApiData>
}
val service = RetrofitHelper.createRetrofitService(SomeApiService::class.java)
// we pass the callback here
service.getApiEndpointData().enqueue()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment