Table of Contents

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

bool

LocalTime

Gets the latest device-local time.

public DateTime? LocalTime { get; }

Property Value

DateTime?

Region

Gets the reported timezone region.

public string? Region { get; }

Property Value

string

State

Gets the latest normalized device time state.

public DeviceTimeState? State { get; }

Property Value

DeviceTimeState

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

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the device state has been refreshed.