getSchedules abstract method

  1. @GET(Api.getSchedules)
Future<ScheduleResponse> getSchedules({
  1. @Query("page") int page = 1,
  2. @Query("size") int size = 10,
  3. @Query("order") String order = "desc",
  4. @Query("positionId") required String positionId,
  5. @Query("coordinates") String? coordinates,
  6. @Query("fromDate") String? fromDate,
  7. @Query("toDate") String? toDate,
  8. @Query("visitStatus") bool? visitStatus,
})

Implementation

@GET(Api.getSchedules)
Future<ScheduleResponse> getSchedules(
    {@Query("page") int page = 1,
    @Query("size") int size = 10,
    @Query("order") String order = "desc",
    @Query("positionId") required String positionId,
    @Query("coordinates") String? coordinates,
    @Query("fromDate") String? fromDate,
    @Query("toDate") String? toDate,
    @Query("visitStatus") bool? visitStatus});