Class ServiceSurvey

java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceSurvey

public class ServiceSurvey extends AbstractService
Service to manage requests related to surveys.
Author:
svu
  • Constructor Details

    • ServiceSurvey

      public ServiceSurvey()
  • Method Details

    • getSurveys

      public void getSurveys(String appId, RestCallback<List<SurveyDTO>> callback)
      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

      public void getSurvey(String appId, String id, RestCallback<SurveyDetailDTO> callback)
      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).
    • saveSurvey

      public void saveSurvey(String appId, SurveyDetailDTO survey, RestCallback<Void> callback)
      Saves a survey for a given application.
      Parameters:
      appId - The ID of the application.
      survey - The survey data to save.
      callback - The callback to handle the response (no data returned).