CloudOnce v2.7.5
Unified Game Services API
CloudOnce.CloudRequestResult< T > Class Template Reference

Used for callbacks when calling on methods in the native bridge plug-ins More...

Public Member Functions

 CloudRequestResult (T result)
 Initializes a new instance of the CloudRequestResult<T> class of type T with an empty error More...
 
 CloudRequestResult (T result, string error)
 Initializes a new instance of the CloudRequestResult<T> class of type T with a specified error More...
 

Properties

string Error [get]
 Error contained in the result. Empty if no error
 
Result [get]
 The result of the request.
 
bool HasError [get]
 Returns true if an error occurred with the request, false if it was successful.
 

Detailed Description

Used for callbacks when calling on methods in the native bridge plug-ins

Template Parameters
TType of result to send, e.g. long for score, bool for success/failure
Type Constraints
T :new() 

Constructor & Destructor Documentation

◆ CloudRequestResult() [1/2]

Initializes a new instance of the CloudRequestResult<T> class of type T with an empty error

Parameters
resultType of result to send, e.g. long for score, bool for success/failure.

◆ CloudRequestResult() [2/2]

CloudOnce.CloudRequestResult< T >.CloudRequestResult ( result,
string  error 
)
inline

Initializes a new instance of the CloudRequestResult<T> class of type T with a specified error

Parameters
resultType of result to send, e.g. long for score, bool for success/failure.
errortext of the error component

The documentation for this class was generated from the following file: