getBikePointsOccupanciesByPathIds method

Future<List<BikePointOccupancy>> getBikePointsOccupanciesByPathIds(
  1. List<String> ids
)

Get the occupancy for bike points.

Implementation

Future<List<BikePointOccupancy>> getBikePointsOccupanciesByPathIds(
  List<String> ids,
) async {
  final response = await _context.client.get(
    Uri.https(
      authority,
      '/occupancy/bikepoints/${ids.join(',')}',
    ),
  );

  ClientException.checkIsSuccessStatusCode(response);

  return BikePointOccupancy.listFromJson(json.decode(response.body));
}