Enfusion Script API
Loading...
Searching...
No Matches
BackendCallback Interface Reference

Backend Request/Response Callback class for script. More...

Inheritance diagram for BackendCallback:
Managed

Public Member Functions

void OnSuccess (int code)
 Request finished with successful result.
 
void OnError (int code, int restCode, int apiCode)
 Request finished with error result.
 
void OnTimeout ()
 Request did not finish due to timeout.
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Detailed Description

Backend Request/Response Callback class for script.

Member Function Documentation

◆ OnError()

void BackendCallback.OnError ( int code,
int restCode,
int apiCode )

Request finished with error result.

Parameters
codeError code of EBackendError type
restCodeGeneric HTTP result code
apiCodeError code provided by Backend API of EApiCode type

◆ OnSuccess()

void BackendCallback.OnSuccess ( int code)

Request finished with successful result.

Parameters
codeCode to identify what request was successful

◆ OnTimeout()

void BackendCallback.OnTimeout ( )

Request did not finish due to timeout.


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