Common
Common is an auxiliary class of SDK, which is a static class.
This class provides the following methods:
- GetDateTotalMilliseconds
The method provides capability to convert time to timestamp.
This method accepets an optional parameter of DateTime
type. When the parameter is not passed, the timestamp of the current time is returned; when the parameter has a value, the timestamp corresponding to the parameter is returned.
The return value type of this method is:double
- GetDateTimeFromMilliseconds
The method provides capability to convert timestamp to time.
This method accepets a parameter of long
type. Returned parameter corresponds to UTC time.
- GetNonce
The method provides capability to return random numbers.
The random number returned by this method is GUID format,for example:40496074-3203-43d3-943d-6a907062a224
.