projects
/
iotcloud.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Completing Lifx driver that uses Particle cloud; Particle phone app provides a nice...
[iotcloud.git]
/
version2
/
src
/
RPi
/
DeviceStateInfo.h
1
#ifndef _DEVICESTATEINFO_H__
2
#define _DEVICESTATEINFO_H__
3
#include <iostream>
4
5
class DeviceStateInfo {
6
private:
7
int64_t time;
8
int64_t upTime;
9
int64_t downTime;
10
11
public:
12
13
DeviceStateInfo(int64_t _time, int64_t _upTime, int64_t _downTime) {
14
15
time = _time;
16
upTime = _upTime;
17
downTime = _downTime;
18
}
19
20
21
~DeviceStateInfo() {
22
}
23
24
25
int64_t getTime() {
26
return time;
27
}
28
29
30
int64_t getUpTime() {
31
return upTime;
32
}
33
34
35
int64_t getDownTime() {
36
return downTime;
37
}
38
};
39
#endif