Class TimeModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to device-local time information.
public sealed class TimeModule
- Inheritance
-
TimeModule
- Inherited Members
Properties
IsAvailable
Gets a value indicating whether device time metadata is currently available.
public bool IsAvailable { get; }
Property Value
LocalTime
Gets the latest device-local time.
public DateTime? LocalTime { get; }
Property Value
Region
Gets the reported timezone region.
public string? Region { get; }
Property Value
State
Gets the latest normalized device time state.
public DeviceTimeState? State { get; }
Property Value
TimeDifferenceMinutes
Gets the reported UTC offset in minutes.
public int? TimeDifferenceMinutes { get; }
Property Value
- int?
Methods
UpdateAsync(CancellationToken)
Refreshes time-related state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the device state has been refreshed.