Class ProxyEndPointRecord
- Namespace
- VpnHood.Core.Proxies.Management.Abstractions
- Assembly
- VpnHood.Core.Proxies.Management.Abstractions.dll
Represents a proxy endpoint as the endpoint store keeps it: the endpoint, its status and its country.
public class ProxyEndPointRecord
- Inheritance
-
ProxyEndPointRecord
- Inherited Members
Properties
CountryCode
Gets or sets the code of the country the app found the endpoint in, or null.
public string? CountryCode { get; set; }
Property Value
EndPoint
Gets or sets the endpoint.
public required ProxyEndPoint EndPoint { get; set; }
Property Value
Status
Gets or sets the endpoint's status. The default is a new, unused one.
public ProxyEndPointStatus Status { get; set; }
Property Value
Methods
FromInfo(ProxyEndPointInfo, string?)
Makes a record of an endpoint and its status.
public static ProxyEndPointRecord FromInfo(ProxyEndPointInfo info, string? countryCode = null)
Parameters
infoProxyEndPointInfoThe endpoint and its status, whose objects the record shares.
countryCodestringThe endpoint's country code, or null.
Returns
- ProxyEndPointRecord
The record.
ToInfo()
Gets the record's endpoint and status, without its country.
public ProxyEndPointInfo ToInfo()
Returns
- ProxyEndPointInfo
An info that shares the record's endpoint and status objects.