Range
data class Range(val years: List<YearsSelector>? = null, val months: List<MonthsOrDateSelector>? = null, val weeks: List<WeeksSelector>? = null, val text: String? = null, val useSeparatorForReadability: Boolean? = null, val weekdays: List<WeekdaysSelector>? = null, val holidays: List<HolidaySelector>? = null, val isRestrictedByHolidays: Boolean = false, val times: List<TimesSelector>? = null) : Selector(source)
At a certain time of year(s), months, weeks, weekdays, times.
text can be set instead of years, months and weeks to define a wide range in prose, for example "'during Ramadan': Mo-Fr 20:00-22:00".
If isRestrictedByHolidays is true, it means its only those weekdays on the given holidays, e.g. Mondays that are school holidays. If false, it's on those weekdays and holidays, e.g. Sundays and public holidays.
Constructors
Link copied to clipboard
constructor(years: List<YearsSelector>? = null, months: List<MonthsOrDateSelector>? = null, weeks: List<WeeksSelector>? = null, text: String? = null, useSeparatorForReadability: Boolean? = null, weekdays: List<WeekdaysSelector>? = null, holidays: List<HolidaySelector>? = null, isRestrictedByHolidays: Boolean = false, times: List<TimesSelector>? = null)
Convenience constructor for weekdays plus times