Constructor ApiResponse
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
ApiResponseCodeThe response code indicating the status of the API call.
value
TThe value returned from the API, if applicable.
endpoint
stringThe 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
ApiResponseCodeThe response code indicating the status of the API call.
message
stringThe message describing the result of the API call.
endpoint
stringThe endpoint that was called for this response.