Advertisement
rama_astadipati

ApiRequestBiodata

Jun 28th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. package com.hakiki95.appbiodata.api;
  2.  
  3. import com.hakiki95.appbiodata.model.ResponsModel;
  4.  
  5. import retrofit2.Call;
  6. import retrofit2.http.Field;
  7. import retrofit2.http.FormUrlEncoded;
  8. import retrofit2.http.GET;
  9. import retrofit2.http.POST;
  10.  
  11. /**
  12. * Created by hakiki95 on 4/16/2017.
  13. */
  14.  
  15. public interface ApiRequestBiodata {
  16.  
  17. @FormUrlEncoded
  18. @POST("insert.php")
  19. Call<ResponsModel> sendBiodata(@Field("nama") String nama,
  20. @Field("usia") String usia,
  21. @Field("domisili") String domisili);
  22.  
  23. @GET("read.php")
  24. Call<ResponsModel> getBiodata();
  25.  
  26. @FormUrlEncoded
  27. @POST("update.php")
  28. Call<ResponsModel> updateData( @Field("id") String id,
  29. @Field("nama") String nama,
  30. @Field("usia") String usia,
  31. @Field("domisili") String domisili);
  32.  
  33. @FormUrlEncoded
  34. @POST("delete.php")
  35. Call<ResponsModel> deleteData(@Field("id") String id);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement