Created
January 30, 2021 17:58
-
-
Save GauravChaddha1996/9086e86fcacb702f6fb0f237ca8ac5d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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