Class ServiceSurvey
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceSurvey
Service to manage requests related to surveys.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetSurvey(String appId, String id, RestCallback<SurveyDetailDTO> callback) Retrieves a specific survey by its ID.voidgetSurveys(String appId, RestCallback<List<SurveyDTO>> callback) Retrieves all surveys for a given application.voidsaveSurvey(String appId, SurveyDetailDTO survey, RestCallback<Void> callback) Saves a survey for a given application.Methods inherited from class org.silverpeas.mobile.shared.services.rest.AbstractService
asBoolean, delete, encode, escapeJson, get, getText, initContext, mapArray, post, put, request, request, requestJson, requestText, toJsonArray
-
Constructor Details
-
ServiceSurvey
public ServiceSurvey()
-
-
Method Details
-
getSurveys
Retrieves all surveys for a given application.- Parameters:
appId- The ID of the application.callback- The callback to handle the response (list of SurveyDTO).
-
getSurvey
Retrieves a specific survey by its ID.- Parameters:
appId- The ID of the application.id- The ID of the survey.callback- The callback to handle the response (SurveyDetailDTO).
-