Table of Contents

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

string

EndPoint

Gets or sets the endpoint.

public required ProxyEndPoint EndPoint { get; set; }

Property Value

ProxyEndPoint

Status

Gets or sets the endpoint's status. The default is a new, unused one.

public ProxyEndPointStatus Status { get; set; }

Property Value

ProxyEndPointStatus

Methods

FromInfo(ProxyEndPointInfo, string?)

Makes a record of an endpoint and its status.

public static ProxyEndPointRecord FromInfo(ProxyEndPointInfo info, string? countryCode = null)

Parameters

info ProxyEndPointInfo

The endpoint and its status, whose objects the record shares.

countryCode string

The 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.