API reference

RequestCompleteResponse Struct

A request result wrapper which can return a result and error string.
Others
TResult
the type of the result data

Fields

TValue Value[Get]
The type of the result data
string Error[Get]
The error string, if errors occurred. Will be NullOrEmpty otherwise.

Member Functions

RequestCompleteResponse
( TValue value,
string error )
Simple constructor with value and error
Parameters
value
The value of the response
error
Any returned error from the request
RequestCompleteResponse
( TValue value )
RequestCompleteResponse
( string error )