Moving Java drivers; Creating iotruntime socket connections for C++; First version...
[iot2.git] / benchmarks / drivers / Cpp / LifxLightBulb / DeviceStateLocation.hpp~
1 #ifndef _DEVICESTATELOCATION_HPP__
2 #define _DEVICESTATELOCATION_HPP__
3 #include <iostream>
4 #include <string>
5
6 class DeviceStateLocation {
7         private:
8                 char location[16];
9                 string label;
10                 int64_t updatedAt;
11
12         public:
13
14                 DeviceStateLocation(char _location[16], String _label, long _updatedAt) {
15
16                         strcpy(location, _location);
17                         label = _label;
18                         updatedAt = _updatedAt;
19                 }
20
21
22                 ~DeviceStateLocation() {
23                 }
24
25
26                 char* getLocation() {
27                         return location;
28                 }
29
30
31                 string getLabel() {
32                         return label;
33                 }
34
35
36                 int64_t getUpdatedAt() {
37                         return updatedAt;
38                 }
39 };
40 #endif