12 lines
338 B
C++
12 lines
338 B
C++
#include "Blinds.h"
|
|
|
|
Blinds::Blinds(std::string id, std::string name, bool shaded) : Device(id, name), shaded(shaded) {}
|
|
|
|
std::string Blinds::isShaded() const {
|
|
return (shaded) ? "open" : "closed";
|
|
}
|
|
|
|
std::string Blinds::toString() const {
|
|
return " id: " + id + " name: " + name + " is shaded: " + isShaded() + "\n";
|
|
}
|