Utility Class |
Namespace: IBM.Watson.DeveloperCloud.Utilities
public static class Utility
The Utility type exposes the following members.
Name | Description | |
---|---|---|
MacAddress |
Returns First valid Mac address of the local machine
|
Name | Description | |
---|---|---|
AddTopLevelObjectToJson |
Hack to add a top level object to a json string because Unity does not like top level collections.
| |
Approximately(Double, Double, Double) |
Approximately the specified a, b and tolerance.
| |
Approximately(Single, Single, Single) |
Approximately the specified a, b and tolerance.
| |
Approximately(Quaternion, Quaternion, Single) |
Approximately Quaternion with the specified a, b and tolerance.
| |
Approximately(Vector3, Vector3, Single) |
Approximately the specified a, b and tolerance.
| |
Color32ArrayToByteArray |
Converts Color32 array to Byte array.
| |
CreateAuthorization |
Create basic authentication header data for REST requests.
| |
DeserializeResponseT(Byte, Object) |
Deserializes the response.
| |
DeserializeResponseT(String, Object) |
Deserializes the response.
| |
FindAllDerivedTypes |
This helper functions returns all Type's that inherit from the given type.
| |
FindObject |
Finds the object in child of parent object by name of child
| |
FindObjectsT |
Finds the objects in children of parent object by name of child
| |
GetEpochUTCMilliseconds |
Gets the EPOCH time in UTC time zome
| |
GetEpochUTCSeconds |
Gets the epoch UTC seconds.
| |
GetExtension | ||
GetLocalDateTimeFromEpoch |
Gets the date time from epoch.
| |
GetMD5 |
Get the MD5 hash of a string.
| |
GetMimeType | ||
GetOnOffString |
Gets the on off string.
| |
GetToken |
Gets a token to authenticate serivce calls instead of using username and password.
| |
RemoveTags |
Removes any tags from a string. (e.g. )
| |
StripString |
Strips the prepending ! statment from string.
|