Class ChildWaterLeakSensorModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides typed water leak information for a child sensor device.
public sealed class ChildWaterLeakSensorModule
- Inheritance
-
ChildWaterLeakSensorModule
- Inherited Members
Properties
Alert
Gets whether the child device currently reports an active alert.
public bool? Alert { get; }
Property Value
- bool?
AlertTimestamp
Gets the latest reported alert timestamp, when available.
public long? AlertTimestamp { get; }
Property Value
- long?
State
Gets the latest typed water leak state for the child device.
public ChildWaterLeakSensorState? State { get; }
Property Value
Status
Gets the latest reported water leak status string.
public string? Status { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes the parent device state and child module data.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the parent device state has been refreshed.