Table of Contents

Class VpnHoodApi

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

Represents the app's API as one object: its six parts, whichever way a UI reaches them.

public sealed class VpnHoodApi
Inheritance
VpnHoodApi
Inherited Members

Remarks

A UI reaches it in the app's own process, where no listener is involved, or over HTTP from a paired browser (VpnHoodApiHttpFactory); a UI written against it runs on the device and in a browser alike. A failure comes as IAppApi describes.

Constructors

VpnHoodApi(IAppApi, IVpnProfilesApi, IAccountApi, IBillingApi, IIntentsApi, IProxyEndPointsApi)

Represents the app's API as one object: its six parts, whichever way a UI reaches them.

public VpnHoodApi(IAppApi app, IVpnProfilesApi vpnProfiles, IAccountApi account, IBillingApi billing, IIntentsApi intents, IProxyEndPointsApi proxyEndPoints)

Parameters

app IAppApi

The app's information, state and settings.

vpnProfiles IVpnProfilesApi

The VPN profiles.

account IAccountApi

The person's account.

billing IBillingApi

The in-app purchase.

intents IIntentsApi

What the UI asks of the device.

proxyEndPoints IProxyEndPointsApi

The proxy servers.

Remarks

A UI reaches it in the app's own process, where no listener is involved, or over HTTP from a paired browser (VpnHoodApiHttpFactory); a UI written against it runs on the device and in a browser alike. A failure comes as IAppApi describes.

Properties

Account

Gets the person's account.

public IAccountApi Account { get; }

Property Value

IAccountApi

App

Gets the app's information, state and settings.

public IAppApi App { get; }

Property Value

IAppApi

Billing

Gets the in-app purchase.

public IBillingApi Billing { get; }

Property Value

IBillingApi

Intents

Gets what the UI asks of the device.

public IIntentsApi Intents { get; }

Property Value

IIntentsApi

ProxyEndPoints

Gets the proxy servers.

public IProxyEndPointsApi ProxyEndPoints { get; }

Property Value

IProxyEndPointsApi

VpnProfiles

Gets the VPN profiles.

public IVpnProfilesApi VpnProfiles { get; }

Property Value

IVpnProfilesApi