Package src :: Package com :: Package deviceatlas :: Module data_type :: Class DataType
[frames] | no frames]

Class DataType

This class represents the data types for various properties. Each Property object returned has a data_type() method.


Copyright: Copyright (c) DeviceAtlas Limited 2023. All Rights Reserved.

Author: DeviceAtlas Limited

Static Methods
 
name(data_type_id)
Get the name of a given data type.
 
get_property_as_byte(type_char)
Get data type id by data type character from JSON "s", "b", "i".
Class Variables
  BOOLEAN = 0
  BYTE = 1
  SHORT = 2
  INTEGER = 3
  LONG = 4
  FLOAT = 5
  DOUBLE = 6
  STRING = 7
  UNKNOWN = 8
Method Details

name(data_type_id)
Static Method

 

Get the name of a given data type.

Parameters:
  • data_type_id - The identifier to lookup the name for.
Returns:
The name of the data type.

get_property_as_byte(type_char)
Static Method

 

Get data type id by data type character from JSON "s", "b", "i". :param type_char: :return: