Initial version of Lifx lightbulb controller in C++ for Fidelius
[iotcloud.git] / version2 / src / RPi / DeviceStateGroup.h
1 #ifndef _DEVICESTATEGROUP_H__
2 #define _DEVICESTATEGROUP_H__
3 #include <iostream>
4 #include <string>
5
6 class DeviceStateGroup {
7
8         private:
9                 char group[16];
10                 string label;
11                 int64_t updatedAt;
12
13         public:
14
15                 DeviceStateGroup(char _location[16], string _label, int64_t _updatedAt) {
16
17                         strcpy(group, _location);
18                         label = _label;
19                         updatedAt = _updatedAt;
20                 }
21
22
23                 ~DeviceStateGroup() {
24                 }
25
26
27                 char* getGroup() {
28                         return group;
29                 }
30
31
32                 string getLabel() {
33                         return label;
34                 }
35
36
37                 int64_t getUpdatedAt() {
38                         return updatedAt;
39                 }
40 };
41 #endif