C# syntax data types are used in the BSN.cloud Main REST API to indicate the type of values that will be stored.
Note that the device API framework differs from the older framework used in the main API.
Data Type | Definition | Default Value |
---|---|---|
DateTime | Defines a moment in time using a sortable UTC pattern value format. For example, 2022-02-18T16:57:00.123Z | |
Nullable<int> | Data types with a question mark - for example, [int?] - are defined as null. Most data types are not nullable in this API framework, so this data type allows you to accept null for a non-nullable type. By default, nullable types are strings. | |
TimeSpan | Represents a period of time. Possible values are:
| |
Uri | A representation of a resource available on the internet or intranet. This data type is nullable. |