Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface AreaDetailService {
- @GET("area/{area_id}")
- Call<PlantationAreaData> getDetailArea(@Path("area_id") String area_id, @Query("id") String id, @Query("_token") String token);
- @GET("directleaves/nutrients/search")
- Call<PlanDataBundle> getPlanAll(@Query("pln_area") String pln_area, @Query("id") String id, @Query("_token") String token, @Query("skip") int skip, @Query("take") int take);
- @POST("directleaves/nutrients")
- @FormUrlEncoded
- Call<Void> storePlan(@Field("id") String id, @Field("_token") String token, @Field("pln_area") String area_id, @Field("pln_activity") String activity, @Field("pln_date") String date, @Field("pln_commodity") String commodity);
- }
- public interface DirectLeavesService {
- @POST("directleaves/nutrientsp")
- @FormUrlEncoded
- Call<SurveyStoreResultData> storeSurvey(@Field("id") String id, @Field("_token") String token, @Field("sur_plan") String plan_id, @Field("sur_lat") String latitude, @Field("sur_long") String longitude, @Field("sur_red") int red, @Field("sur_green") int green, @Field("sur_blue") int blue);
- @POST("directleaves/nutrientsp/store_mass")
- @FormUrlEncoded
- Call<Void> storeMass(@Field("id") String id, @Field("_token") String token, @Field("data[]") ArrayList<String> data);
- @DELETE("directleaves/nutrientsp/{survey_id}")
- Call<Void> deleteSurvey(@Path("survey_id") String surveyID, @Query("id") String id, @Query("_token") String token);
- }
- public interface EventService {
- @GET("area/{area_id}")
- Call<PlantationAreaData> getDetailEvent(@Path("area_id") String area_id, @Query("id") String id, @Query("_token") String token);
- @GET("directleaves/nutrientsp/{plan_id}")
- Call<EventDataBundle> getEventAll(@Path("plan_id") String plan_id, @Query("id") String id, @Query("_token") String token, @Query("skip") int skip, @Query("take") int take);
- @POST("directleaves/nutrientsp")
- @FormUrlEncoded
- Call<Void> storeEvent(@Field("id") String id, @Field("_token") String token, @Field("evt_name") String event_name, @Field("evt_date_begin") String date_begin, @Field("evt_date_end") String date_end, @Field("evt_plan") String plan_id);
- @GET("directleaves/nutrientsr/0")
- Call<JsonObject> getDSS(@Query("plan") String plan_id, @Query("id") String id, @Query("_token") String token);
- @PUT("directleaves/nutrientsr/{plan_id}")
- Call<JsonObject> updateDSS(@Path("plan_id") String plan_id, @Query("id") String id, @Query("_token") String token, @Query("rep_type") String rep_type, @Query("survey") String survey_id);
- @POST("directleaves/nutrientsr")
- @FormUrlEncoded
- Call<Void> storeDSSPlant(@Query("id") String id, @Query("_token") String token, @Field("first_step") String first_step, @Field("rep_plan") String plan_id, @Field("rep_type") String type, @Field("rep_fe") int rep_fe, @Field("rep_age") int rep_age, @Field("rep_fr") int rep_fr, @Field("rep_production") int rep_production, @Field("rep_shade") String rep_shade, @Field("rep_dry") int rep_dry, @Field("rep_adjustment") int rep_adjustment);
- @POST("directleaves/nutrientsr")
- @FormUrlEncoded
- Call<Void> storeDSSArea(@Query("id") String id, @Query("_token") String token, @Field("first_step") String first_step, @Field("rep_plan") String plan_id, @Field("rep_type") String type, @Field("rep_fe") int rep_fe, @Field("rep_age") int rep_age, @Field("rep_fr") int rep_fr, @Field("rep_shade") String rep_shade, @Field("rep_dry") int rep_dry, @Field("rep_quantity") int rep_quantity, @Field("rep_adjustment") int rep_adjustment);
- @DELETE("directleaves/nutrientsr/{id}")
- Call<Void> deleteDSS(@Path("id") String dss_id, @Query("_token") String token, @Query("id") String id);
- }
- public interface PlantationAreaService {
- @GET("area/0")
- Call<PlantationAreaDataBundle> getAllPlantationArea(@Query("id") String id, @Query("_token") String token, @Query("skip") int skip, @Query("take") int take);
- @POST("area")
- @FormUrlEncoded
- Call<Void> storePlantationArea(@Field("are_name") String area_name, @Field("are_wide") int area_wide, @Query("id") String id, @Query("_token") String token, @Field("detail")String detail);
- @PATCH("area/{area_id}")
- @FormUrlEncoded
- Call<Void> updatePlantationArea(@Path("area_id") String area_id, @Field("are_name") String area_name, @Field("are_wide") float area_wide, @Query("id") String id, @Query("_token") String token, @Field("detail")String detail);
- @DELETE("area/{area_id}")
- Call<Void> deletePlantationArea(@Path("area_id") String area_id, @Query("id") String id, @Query("_token") String token);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement