Skip to main content

BusyTimerSettings

Namespace: Busy.Bar

System.Text.Json's polymorphic deserialization requires the "type" discriminator to be the first property in the JSON object, or it throws NotSupportedException. Confirmed against a real BUSY Bar device (see RealDeviceFixtureTests) that "type" is always first for both BusyTimerSettings and BusySnapshotState payloads, across GET /busy/snapshot, GET /busy/profiles/{slot}, and multiple discriminator values (NOT_STARTED, INTERVAL) — treated as a confirmed assumption, not a theoretical risk.

public abstract record class BusyTimerSettings : System.IEquatable`1[[Busy.Bar.BusyTimerSettings, BusyBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → BusyTimerSettings
Implements IEquatable<BusyTimerSettings>
Attributes NullableContextAttribute, NullableAttribute, JsonPolymorphicAttribute, JsonDerivedTypeAttribute, JsonDerivedTypeAttribute, JsonDerivedTypeAttribute

Constructors

BusyTimerSettings(BusyTimerSettings)

protected BusyTimerSettings(BusyTimerSettings original)

Parameters

original BusyTimerSettings

BusyTimerSettings()

protected BusyTimerSettings()