getSchedules abstract method

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