Interface IUser
Interface IUser. Provides an interface for API users/customers.
Namespace: VpnSDK.Interfaces
Assembly: cs.temp.dll.dll
Syntax
public interface IUser : INotifyPropertyChanged
Properties
AccessToken
Gets the access token.
Declaration
string AccessToken { get; }
Property Value
Type | Description |
---|---|
System.String |
AccessTokenExpiry
Gets the UTC time when the access token expires, or null if no access token is currently set.
Declaration
DateTime? AccessTokenExpiry { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
EmailAddress
Gets the email address provided by the API. This will be set to null if third-party authentication is used.
Declaration
string EmailAddress { get; }
Property Value
Type | Description |
---|---|
System.String | The email address. |
IsValid
Gets a value indicating whether returns true if the user object is valid.
Declaration
bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RefreshToken
Gets the refresh token.
Declaration
string RefreshToken { get; }
Property Value
Type | Description |
---|---|
System.String |
Status
Gets the current account status.
Declaration
AccountStatus Status { get; }
Property Value
Type | Description |
---|---|
AccountStatus | The status. |
SubscriptionExpiry
Gets the subscription expiry date if known.
Declaration
DateTime? SubscriptionExpiry { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> | The subscription expiry. |
VpnCredential
Gets the VPN server credential.
Declaration
NetworkCredential VpnCredential { get; }
Property Value
Type | Description |
---|---|
NetworkCredential | The VPN credential. |