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
CountryName
Gets the country's English name, for a code the UI cannot name.
public required string CountryName { get; init; }
Property Value
HasRegion
Gets a value indicating whether the location names a region.
public required bool HasRegion { get; init; }
Property Value
IsAuto
Gets a value indicating whether this is the automatic location, /.
public required bool IsAuto { get; init; }
Property Value
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
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
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
RegionName
Gets the region's name, or * for any region.
public required string RegionName { get; init; }
Property Value
ServerLocation
Gets the location without its tags, as US/California.
public required string ServerLocation { get; init; }
Property Value
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
Remarks
Options is what they mean for the person.