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
appIAppApiThe app's information, state and settings.
vpnProfilesIVpnProfilesApiThe VPN profiles.
accountIAccountApiThe person's account.
billingIBillingApiThe in-app purchase.
intentsIIntentsApiWhat the UI asks of the device.
proxyEndPointsIProxyEndPointsApiThe 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
App
Gets the app's information, state and settings.
public IAppApi App { get; }
Property Value
Billing
Gets the in-app purchase.
public IBillingApi Billing { get; }
Property Value
Intents
Gets what the UI asks of the device.
public IIntentsApi Intents { get; }
Property Value
ProxyEndPoints
Gets the proxy servers.
public IProxyEndPointsApi ProxyEndPoints { get; }
Property Value
VpnProfiles
Gets the VPN profiles.
public IVpnProfilesApi VpnProfiles { get; }