Created
September 10, 2015 06:12
-
-
Save yelinaung/db52be200e136f030aa1 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
/* 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