GadgetKeeper supports the following data types:
Has only two possible values:
32-bit signed two's complement integer, which has a minimum value of -231 and a maximum value of 231-1.
|long||64-bit signed two's complement integer, which has a minimum value of -263 and a maximum value of 263-1.|
|float||Single-precision 32-bit IEEE 754 floating point.|
|double||Double-precision 64-bit IEEE 754 floating point.|
|date||An instant in time, with no reference to a particular time zone or calendar system. A number of milliseconds since the Unix epoch.|
|string||Sequence of characters.|
|uuid||128-bit value universally unique identifier.|
An array is a container object that holds a number of values of a single type. GadgetKeeper arrays have no fixed length. Multiple dimensions are supported.
A complex data type declaration that defines a physically grouped list of variables to be placed under one name in a block of memory. The structure can contain many other complex and simple data type in an association. Structures can be organized in packages.
Please check Working With Structured Data Types for an example on working with structures.
Structure name has following requirements:
- must start with a capital letter
- must contain only alphanumeric characters
Structure package name has following requirements:
- must start with a letter
- must contain only alphanumeric characters and .(dot) as a package delimiter
- must be written in all lower case
- it's advised for companies to use their reversed Internet domain name to begin their package names - for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.
Location - location in geographic coordinate system.
Please check Working With Location for an example.