Table of Contents

Class SessionResponseEx

Namespace
VpnHood.Core.Server.Access.Messaging
Assembly
VpnHood.Core.Server.Access.dll

Represents a session as the access manager gives it to the server: what the client gets, with what only the server needs.

public class SessionResponseEx : SessionResponse
Inheritance
SessionResponseEx
Inherited Members

Properties

AccessInfo

Gets or sets the access's terms and state, which the client gets, or null.

public AccessInfo? AccessInfo { get; set; }

Property Value

AccessInfo

AdRequirement

Gets or sets the ad the session requires. The default is none.

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

Property Value

AdRequirement

CreatedTime

Gets or sets when the session was made, in UTC, or null.

public DateTime? CreatedTime { get; set; }

Property Value

DateTime?

ExtraData

Gets or sets the server's own data for the session, as its request gave it, or null.

public string? ExtraData { get; set; }

Property Value

string

GaMeasurementId

Gets or sets the GA4 measurement ID the client reports the session to, where its person allows it, or null.

public string? GaMeasurementId { get; set; }

Property Value

string

ProtocolVersion

Gets or sets the protocol version the session runs on, as its request gave it.

public int ProtocolVersion { get; set; }

Property Value

int

ServerLocation

Gets or sets the server's location, which the client gets, or null.

public string? ServerLocation { get; set; }

Property Value

string

ServerTags

Gets or sets the server's tags, which the client gets. The default is none.

public string[] ServerTags { get; set; }

Property Value

string[]

SessionId

Gets or sets the session's ID.

public ulong SessionId { get; set; }

Property Value

ulong

SessionKey

Gets or sets the session's key, which the client's requests in the session carry. The default is empty.

public byte[] SessionKey { get; set; }

Property Value

byte[]

SuppressedTo

Gets or sets whose session this one took the place of, if any.

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

Property Value

SessionSuppressType