Table of Contents

Class AccessCodeRefusal

Namespace
VpnHood.AppLib.Api.VpnProfiles
Assembly
VpnHood.AppLib.Api.dll

Represents the access server's refusal of a VPN profile's premium code, kept with the profile until a connection succeeds or the code changes.

public class AccessCodeRefusal
Inheritance
AccessCodeRefusal
Inherited Members

Remarks

The code stays, as its issuer may extend it, and the profile still claims premium: the refusal lets the UI say truly whether the code expired or was refused, and keeps a sign-in quiet about a code the server does not know. It is saved with the profile, as only the access server can give it.

Properties

ErrorCode

Gets the access server's reason: only AccessExpired may be shown as an expired code, and any other is a refusal.

public required SessionErrorCode ErrorCode { get; init; }

Property Value

SessionErrorCode

RefusedTime

Gets when the access server refused the code, in UTC.

public required DateTime RefusedTime { get; init; }

Property Value

DateTime