Drag[en]gine Script Module DragonScript
1.23
|
Helper functions for common conversion tasks. More...
Public Member Functions | |
ServiceUserFeatures.AuthTokenProvider | convertAuthTokenProvider (ServiceObject so) |
Convert service user features auth token provider. More... | |
bool | convertBool (ServiceObject so, String key, bool defaultValue) |
Convert service object boolean value. More... | |
float | convertFloat (ServiceObject so, String key, float defaultValue) |
Convert service object float value. More... | |
Float | convertFloatObject (ServiceObject so, String key) |
Convert service object Float object value. More... | |
int | convertInteger (ServiceObject so, String key, int defaultValue) |
Convert service object integer value. More... | |
ServiceModsFeatures | convertModsFeatures (ServiceObject so) |
Convert service mods features. More... | |
ServiceObject | convertReport (ServiceModReport report) |
Convert report to service object. More... | |
ServiceObject | convertReport (ServiceUserReport report) |
Convert report to service object. More... | |
String | convertString (ServiceObject so, String key) |
Convert service object string value. More... | |
String | convertString (ServiceObject so, String key, String defaultValue) |
Convert service object string value. More... | |
Dictionary | convertStringDict (ServiceObject so, String key) |
Convert service object string dictionary value. More... | |
Array | convertStringList (ServiceObject so, String key) |
Convert service object string list value. More... | |
Set | convertStringSet (ServiceObject so, String key) |
Convert service object string set value. More... | |
TimeDate | convertTimeDate (ServiceObject so, String key) |
Convert service object TimeDate value. More... | |
ServiceUserFeatures | convertUserFeatures (ServiceObject so) |
Convert service user features. More... | |
ServiceException | createException (Service service, ServiceObject error) |
Create exception from response. More... | |
BaseServiceConversions | new () |
Create base conversion helper instance. More... | |
Public Attributes | |
Dictionary | mapErrorCategory |
Map from int error category to Enumeration constant. More... | |
Dictionary | mapErrorCode |
Map from int error code to Enumeration constant. More... | |
Helper functions for common conversion tasks.
ServiceUserFeatures.AuthTokenProvider Dragengine.Services.BaseServiceConversions.convertAuthTokenProvider | ( | ServiceObject | so | ) |
Convert service user features auth token provider.
bool Dragengine.Services.BaseServiceConversions.convertBool | ( | ServiceObject | so, |
String | key, | ||
bool | defaultValue | ||
) |
Convert service object boolean value.
float Dragengine.Services.BaseServiceConversions.convertFloat | ( | ServiceObject | so, |
String | key, | ||
float | defaultValue | ||
) |
Convert service object float value.
Float Dragengine.Services.BaseServiceConversions.convertFloatObject | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object Float object value.
int Dragengine.Services.BaseServiceConversions.convertInteger | ( | ServiceObject | so, |
String | key, | ||
int | defaultValue | ||
) |
Convert service object integer value.
ServiceModsFeatures Dragengine.Services.BaseServiceConversions.convertModsFeatures | ( | ServiceObject | so | ) |
Convert service mods features.
ServiceObject Dragengine.Services.BaseServiceConversions.convertReport | ( | ServiceModReport | report | ) |
Convert report to service object.
ServiceObject Dragengine.Services.BaseServiceConversions.convertReport | ( | ServiceUserReport | report | ) |
Convert report to service object.
String Dragengine.Services.BaseServiceConversions.convertString | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object string value.
String Dragengine.Services.BaseServiceConversions.convertString | ( | ServiceObject | so, |
String | key, | ||
String | defaultValue | ||
) |
Convert service object string value.
Dictionary Dragengine.Services.BaseServiceConversions.convertStringDict | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object string dictionary value.
Array Dragengine.Services.BaseServiceConversions.convertStringList | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object string list value.
Set Dragengine.Services.BaseServiceConversions.convertStringSet | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object string set value.
TimeDate Dragengine.Services.BaseServiceConversions.convertTimeDate | ( | ServiceObject | so, |
String | key | ||
) |
Convert service object TimeDate value.
ServiceUserFeatures Dragengine.Services.BaseServiceConversions.convertUserFeatures | ( | ServiceObject | so | ) |
Convert service user features.
ServiceException Dragengine.Services.BaseServiceConversions.createException | ( | Service | service, |
ServiceObject | error | ||
) |
Create exception from response.
BaseServiceConversions Dragengine.Services.BaseServiceConversions.new | ( | ) |
Create base conversion helper instance.
Dictionary Dragengine.Services.BaseServiceConversions.mapErrorCategory |
Map from int error category to Enumeration constant.
Dictionary Dragengine.Services.BaseServiceConversions.mapErrorCode |
Map from int error code to Enumeration constant.