1#ifndef LS_DEVICE_VARIABLE_H
2#define LS_DEVICE_VARIABLE_H
7#pragma warning( disable : 4251 )
38 DeviceVariable( int64_t
id,
const std::string& name,
const std::string& value,
39 const std::string& dateTimeUpdated );
48 int64_t
id()
const {
return m_id; }
52 const std::string&
name()
const {
return m_name; }
56 void setName(
const std::string& name ) { m_name = name; }
60 const std::string&
value()
const {
return m_value; }
64 void setValue(
const std::string& value ) { m_value = value; }
80 std::string m_dateTimeUpdated;
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Class for storing key-value device variable.
int64_t id() const
Getter method for device variable id.
void setName(const std::string &name)
Setter method for device variable name.
DeviceVariable(const std::string &name, const std::string &value)
Constructs device variable with given name (key) and value.
bool isEmpty() const
Check if variable is considered empty.
const std::string & value() const
Getter method for device variable value.
DeviceVariable()
Default constructor, creates empty device variable.
const std::string & name() const
Getter method for device variable name.
tm dateTimeUpdatedUtc() const
Getter method for device variable date time in UTC when it was updated on the backend.
tm dateTimeUpdated() const
Getter method for device variable date time when it was updated on the backend.
DeviceVariable(int64_t id, const std::string &name, const std::string &value, const std::string &dateTimeUpdated)
Constructs device variable with given data.
void setValue(const std::string &value)
Setter method for device variable value.