QuietHoursRule

@Immutable
data class QuietHoursRule(val start: String, val end: String, val days: List<QuietHoursDay> = emptyList())

One recurring quiet window, in local wall-clock time of the PushSchedule.timezone.

A window belongs to the day it opens on: QuietHoursDay.friday with 22:00 to 07:00 is quiet from Friday 22:00 until Saturday 07:00.

Parameters

start

When the window opens, as HH:MM from 00:00 to 23:59. Must differ from end.

end

When the window closes, as HH:MM from 00:00 to 24:00, exclusive. An end earlier than start wraps past midnight. 00:00 to 24:00 is a whole day.

days

The days the window opens on. Empty means every day.

Constructors

Link copied to clipboard
constructor(start: String, end: String, days: List<QuietHoursDay> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val end: String
Link copied to clipboard