Class EventState
- Namespace
- OverKizApi.Models
- Assembly
- OverKizApi.dll
A snapshot of a single device state as embedded within an EventObject payload. Semantically identical to State but typed separately by the API.
public sealed class EventState
- Inheritance
-
EventState
- Inherited Members
Properties
Name
Qualified state name (e.g. "core:ClosureState").
[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; init; }
Property Value
Type
Discriminator identifying the CLR type of Value.
[JsonPropertyName("type")]
public DataType Type { get; init; }
Property Value
Value
Vendor-defined value represented by CLR primitives, lists or dictionaries.
[JsonPropertyName("value")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(DeviceValueConverter))]
public object? Value { get; init; }