Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

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 TypeDefinitionDefault Value
DateTimeDefines 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: 

  • 00:00 - 23:59 (hours and minutes)
  • 00:00:00 - 23:59:59 (hours, minutes, and seconds. This is the default format)
  • 00:00:00.000 - 23:59:59.999 (hours, minutes, seconds, and milliseconds)
  • 1.00:00:00 - 99999.23:59:59 (date, hours, minutes, seconds)
  • 1.00:00:00.000 - 99999.23:59:59.999 (date, hours, minutes, seconds, and milliseconds)

UriA representation of a resource available on the internet or intranet. This data type is nullable.








  • No labels