Table of Contents

Class ServerLocationItem

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

Represents a server location the person may pick, as the app built it: the country and region, whether it is a country above its own regions, and what the person may do with it.

public class ServerLocationItem
Inheritance
ServerLocationItem
Inherited Members

Remarks

The UI names the country from its code, in the language it shows.

Properties

CountryCode

Gets the country's two-letter code, or * for the automatic location.

public required string CountryCode { get; init; }

Property Value

string

CountryName

Gets the country's English name, for a code the UI cannot name.

public required string CountryName { get; init; }

Property Value

string

HasRegion

Gets a value indicating whether the location names a region.

public required bool HasRegion { get; init; }

Property Value

bool

IsAuto

Gets a value indicating whether this is the automatic location, /.

public required bool IsAuto { get; init; }

Property Value

bool

IsDefault

Gets a value indicating whether the location is the one picked when the person picks none.

public required bool IsDefault { get; init; }

Property Value

bool

IsNestedCountry

Gets a value indicating whether the location is listed under its country's own entry, as one of its several regions.

public required bool IsNestedCountry { get; init; }

Property Value

bool

Options

Gets or sets what the person may do with the location. The default offers an ordinary connection with no limit.

public ServerLocationOptions Options { get; set; }

Property Value

ServerLocationOptions

RegionName

Gets the region's name, or * for any region.

public required string RegionName { get; init; }

Property Value

string

ServerLocation

Gets the location without its tags, as US/California.

public required string ServerLocation { get; init; }

Property Value

string

Tags

Gets or sets the operator's tags of the location, as #premium and #unblockable, or null; a country above its regions carries ~#tag where only some of them have one.

public IReadOnlyList<string>? Tags { get; set; }

Property Value

IReadOnlyList<string>

Remarks

Options is what they mean for the person.