Table of Contents

Class ApiResponse<T>

Namespace
VpnHood.Core.Client.VpnServices.Abstractions.Requests
Assembly
VpnHood.Core.Client.VpnServices.Abstractions.dll

Represents the VPN service's answer to a request.

public class ApiResponse<T>

Type Parameters

T

The type of the request's result.

Inheritance
ApiResponse<T>
Inherited Members

Properties

ApiError

Gets or sets the error the request failed with, or null where it succeeded.

public required ApiError? ApiError { get; set; }

Property Value

ApiError

ConnectionInfo

Gets or sets the connection's info as of the answer.

public required ConnectionInfo ConnectionInfo { get; set; }

Property Value

ConnectionInfo

Result

Gets or sets the request's result, or the default where it has none or failed.

public required T? Result { get; set; }

Property Value

T