getSchedules

abstract suspend fun getSchedules(unitId: String, endsAfter: String, startsBefore: String? = null, pageConfig: PageConfig? = null): Result<Paged<TimePeriod>>

Get a paginated TimePeriod for the given unitId.

Since

1.6.0

Return

a paged TimePeriod

Parameters

unitId

the unit id you will get the schedules.

endsAfter

(ISO 8601) timestamp. You will get bookings that ends after this timestamp.

startsBefore

(ISO 8601) timestamp. You will get bookings that starts before this timestamp. When startsBefore is null you will get all bookings that endsAfter.

pageConfig

configuration for paginated data fetching