Skip to content

Instantly share code, notes, and snippets.

@yelinaung
Created September 10, 2015 06:12
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 yelinaung/db52be200e136f030aa1 to your computer and use it in GitHub Desktop.
Save yelinaung/db52be200e136f030aa1 to your computer and use it in GitHub Desktop.
/* 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