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
responseCodeApiResponseCodeThe response code indicating the status of the API call.
valueTThe value returned from the API, if applicable.
endpointstringThe 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
responseCodeApiResponseCodeThe response code indicating the status of the API call.
messagestringThe message describing the result of the API call.
endpointstringThe endpoint that was called for this response.