WeekdayStrategy

@Serializable
@SerialName(value = "weekday")
data class WeekdayStrategy(val days: Set<DayOfWeek>, val timezone: TimeZone = TimeZone.UTC) : FlippingStrategy(source)

Active on the given days of the week in timezone.

Constructors

Link copied to clipboard
constructor(days: Set<DayOfWeek>, timezone: TimeZone = TimeZone.UTC)

Properties

Link copied to clipboard
val days: Set<DayOfWeek>
Link copied to clipboard
@Serializable(with = TimeZoneSerializer::class)
val timezone: TimeZone

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun evaluate(feature: Feature, context: Map<String, Any>): Boolean
Link copied to clipboard
Link copied to clipboard