|
Enfusion Script API
|
Public Member Functions | |
| void | OnSuccess (string data, int dataSize) |
| Called when data arrived and/ or response processed successfully Override this with your implementation. | |
| void | OnError (int errorCode) |
| Called in case request failed (ERestResult) - Note! May be called multiple times in case of (RetryCount > 1) Override this with your implementation. | |
| void | OnTimeout () |
| Called in case request timed out or handled improperly (no error, no success, no data) Override this with your implementation. | |
| void | OnFileCreated (string fileName, int dataSize) |
| OnFileCreated is OBSOLETE - Will be removed. | |
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) | |
object to be used from script for result binding
[Example:]
RestCallback cbx1 = new RestCallback;
RestContext ctx = g_Game.GetRestApi().GetContext("http://somethingsomewhere.com/path/");
ctx.GET(cbx1,"RequestPath?Argument=Something");
Event are then called upon RestCallback()
| void RestCallback.OnError | ( | int | errorCode | ) |
OnFileCreated is OBSOLETE - Will be removed.
| void RestCallback.OnTimeout | ( | ) |
Called in case request timed out or handled improperly (no error, no success, no data) Override this with your implementation.