Table of Contents

Class VpnProfileUpdateParams

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

Represents a change to a VPN profile: each part set changes, and each left null stays, but for what removing the premium code clears (AccessCode).

public class VpnProfileUpdateParams
Inheritance
VpnProfileUpdateParams
Inherited Members

Properties

AccessCode

Gets or sets the premium code typed for the VPN profile, or null to keep the profile's; a signed-in account gets it uploaded.

public Patch<string?>? AccessCode { get; set; }

Property Value

Patch<string>

Remarks

A different code, or none, clears the profile's AccessCodeRefusal; where an existing code is removed, the premium location and the chosen location are cleared too, even where this change sets them.

CustomData

Gets or sets the text a UI keeps with the VPN profile, or null to keep it.

public Patch<string?>? CustomData { get; set; }

Property Value

Patch<string>

CustomServerEndpoints

Gets or sets the server's addresses the person gives, or null to keep them.

public Patch<string[]?>? CustomServerEndpoints { get; set; }

Property Value

Patch<string[]>

IsCustomServerEndpointsEnabled

Gets or sets whether the VPN profile connects to its own server addresses, or null to keep it.

public Patch<bool>? IsCustomServerEndpointsEnabled { get; set; }

Property Value

Patch<bool>

IsFavorite

Gets or sets whether the VPN profile is a favorite, or null to keep it.

public Patch<bool>? IsFavorite { get; set; }

Property Value

Patch<bool>

IsPremiumLocationSelected

Gets or sets whether a premium location is chosen, or null to keep it.

public Patch<bool>? IsPremiumLocationSelected { get; set; }

Property Value

Patch<bool>

SelectedLocation

Gets or sets the server location chosen, or null to keep it.

public Patch<string?>? SelectedLocation { get; set; }

Property Value

Patch<string>

VpnProfileName

Gets or sets the new name, or null to keep it.

public Patch<string?>? VpnProfileName { get; set; }

Property Value

Patch<string>