Table of Contents

Class AccessUsage

Namespace
VpnHood.Core.Common.Messaging
Assembly
VpnHood.Core.Common.dll

Represents what a session has used of its access, and what is left.

public class AccessUsage
Inheritance
AccessUsage
Inherited Members

Properties

ActiveClientCount

Gets or sets the number of clients using the access now, or null where not told; for a public access, MANAGER reports 1 in the session's first reply and 0 after.

public int? ActiveClientCount { get; set; }

Property Value

int?

CanExtendByRewardedAd

Gets or sets a value indicating whether the session can be extended by watching a rewarded ad.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool CanExtendByRewardedAd { get; set; }

Property Value

bool

CycleTraffic

Gets or sets the access's traffic in the current cycle.

public Traffic CycleTraffic { get; set; }

Property Value

Traffic

ExpirationTime

Gets or sets when the session expires, in UTC, or null where the access manager reports no time. MANAGER gives the sooner of the session's end and its access's; the file access manager gives the session's alone.

public DateTime? ExpirationTime { get; set; }

Property Value

DateTime?

IsPremium

Gets or sets a value indicating whether the session is premium.

public bool IsPremium { get; set; }

Property Value

bool

IsUserReviewRecommended

Gets or sets whether a review was recommended, for older clients; see UserReviewRecommended.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[Obsolete]
public bool IsUserReviewRecommended { get; set; }

Property Value

bool

MaxTraffic

Gets or sets the access's traffic quota, kept for older clients: MANAGER reports its cycle's quota where one is set, else its total's, else 0.

public long MaxTraffic { get; set; }

Property Value

long

TotalTraffic

Gets or sets the access's traffic in all; zero where the access manager does not report it, as the file access manager does not.

public Traffic TotalTraffic { get; set; }

Property Value

Traffic

UserReviewRecommended

Gets or sets whether the server recommends that the app asks its user for a review after the session: above 0 if so, 0 if not.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int UserReviewRecommended { get; set; }

Property Value

int