Class ComfortCloudSession
- Assembly
- PanasonicComfortCloudClient.dll
Contains caller-owned OAuth credentials and a Comfort Cloud client identifier.
public sealed class ComfortCloudSession
- Inheritance
-
ComfortCloudSession
- Inherited Members
Remarks
The library does not persist credentials. The application owns secure storage.
Properties
AccessToken
Gets the OAuth access token.
public string AccessToken { get; init; }
Property Value
- string
The bearer credential; never write this value to logs.
ClientId
Gets the registered cloud client identifier.
public string? ClientId { get; init; }
Property Value
- string
The server-issued identifier, or null before registration.
ExpiresAt
Gets the access-token expiration.
public DateTimeOffset ExpiresAt { get; init; }
Property Value
- DateTimeOffset
The UTC instant after which refresh is required.
RefreshToken
Gets the rotating refresh token.
public string? RefreshToken { get; init; }
Property Value
- string
The refresh credential, or null when none was issued.
Scope
Gets the granted OAuth scopes.
public string? Scope { get; init; }
Property Value
- string
The space-separated scopes, or null when absent.
Methods
ToString()
Returns a description without credentials.
public override string ToString()
Returns
- string
A description containing only the expiration instant.