getSurvey abstract method

  1. @GET(Api.getSurvey)
Future<SurveyResponse> getSurvey({
  1. @Query("page") int page = 1,
  2. @Query("size") int size = 10,
  3. @Query("order") String order = "desc",
  4. @Query("sort") String fromDate = "",
  5. @Header("X-UserId") String xUserId = "",
})

Implementation

@GET(Api.getSurvey)
Future<SurveyResponse> getSurvey({
  @Query("page") int page = 1,
  @Query("size") int size = 10,
  @Query("order") String order = "desc",
  @Query("sort") String fromDate = "",
  @Header("X-UserId") String xUserId = "",
});