tegarkurniawan

RequestApi

Jan 24th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public interface RequestApi {
  2.  
  3. @GET("/rembon_golf/reservation.php")
  4. Call<Value> view();
  5.  
  6. @FormUrlEncoded
  7. @POST("/rembon_golf/login.php")
  8. Call<Value> login(@Field("email") String email,
  9. @Field("password") String password);
  10.  
  11. @FormUrlEncoded
  12. @POST("/rembon_golf/createuser.php")
  13. Call<Value> usercreate(
  14. @Field("name[]") List<String> name, @Field("reservation_id") String reservation_id);
  15.  
  16. @FormUrlEncoded
  17. @POST("/rembon_golf/holeupdate.php")
  18. Call<Value> holecreate(
  19. @Field("name[]") String name);
  20.  
  21. @GET("/rembon_golf/hole_user.php")
  22. Call<Value> holeuser(@Query("reservation_id") String reservation_id);
  23.  
  24. @GET("/rembon_golf/hole_user.php")
  25. Call<Value> checkuser(@Query("reservation_id") String reservation_id);
  26. }
Add Comment
Please, Sign In to add comment