-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathState.hpp
45 lines (36 loc) · 1 KB
/
State.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* @brief A header for the state class which represents a change of light state to be sent to the hue api
* @author Gurkiran Tatla
* @author Jake Schindler
* @author Justine Kim
* @author Paul Salvatore
* @author Timal Peramune
*/
#ifndef STATE_H_
#define STATE_H_
#include "Light.hpp"
class Light;
class State {
bool isOn;
int brightness;
long long hue;
int saturation;
int transitionTime;
Light *light;
public:
State(bool isOn, int brightness, long long hue, int saturation, Light *light);
State(bool isOn, int brightness, long long hue, int transitionTime);
~State();
bool isON();
int getBrightness();
long long getHue();
int getSaturation();
int getTransitionTime();
// int getOn();
void setON(std::string ip, std::string port);
void setOFF(std::string ip, std::string port);
void setHue(long long hue, std::string ip, std::string port);
void setBrightness(int brightness, std::string ip, std::string port);
void setTransitionTime(int transitionTime);
};
#endif