public void addGuideRating(GuideRating gRating, Guide gtmp) { Gson gson = new Gson(); ControllerASync scontroller = new ControllerASync(); scontroller.delegate = this; scontroller.execute( IP, RequestMethod.POST.toString(), "api/guides/" + gtmp.getS_id() + "/ratings", AsyncResponseType.POSTRATING.toString(), gson.toJson(gRating, GuideRating.class)); }
public void addStandRating(StandRating stRating, Stand st) { Gson gson = new Gson(); ControllerASync rcontroller = new ControllerASync(); rcontroller.delegate = this; rcontroller.execute( IP, RequestMethod.POST.toString(), "api/staende/" + st.getSt_id() + "/ratings", AsyncResponseType.POSTRATING.toString(), gson.toJson(stRating, StandRating.class)); }