Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* Synchronous in Retrofit 1.9 */
public interface CheckVoterService {
@GET("api")
Voter searchVoter(
@Query("voter_name") String voterName,
@QueryMap Map<String, String> optionalQueries
);
}
/* Asynchronous in Retrofit 1.9 */
public interface CheckVoterService {
@GET("api")
void searchVoter(
@Query("voter_name") String voterName,
@QueryMap Map<String, String> optionalQueries,
Callback<Voter> cb
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment