Table of Contents

Constructor ApiResponse

Namespace
Kepware.Api.Model
Assembly
Kepware.Api.dll

ApiResponse(ApiResponseCode, T, string)

Initializes a new instance of the ApiResponse<T> struct with a response code, value, and endpoint.

public ApiResponse(ApiResponseCode responseCode, T value, string endpoint)

Parameters

responseCode ApiResponseCode

The response code indicating the status of the API call.

value T

The value returned from the API, if applicable.

endpoint string

The endpoint that was called for this response.

ApiResponse(ApiResponseCode, string, string)

Initializes a new instance of the ApiResponse<T> struct with a response code, message, and endpoint.

public ApiResponse(ApiResponseCode responseCode, string message, string endpoint)

Parameters

responseCode ApiResponseCode

The response code indicating the status of the API call.

message string

The message describing the result of the API call.

endpoint string

The endpoint that was called for this response.