29 lines
469 B
C++
29 lines
469 B
C++
#ifndef INCLUDE_DI_RPC_CLASS_DEVICE_H_
|
|
#define INCLUDE_DI_RPC_CLASS_DEVICE_H_
|
|
|
|
#include <vector>
|
|
#include <di/rpc/Msg.h>
|
|
|
|
namespace Di {
|
|
namespace Rpc {
|
|
|
|
class Device : public Msg {
|
|
public:
|
|
struct deviceData {
|
|
std::string state;
|
|
bool error;
|
|
};
|
|
|
|
deviceData data;
|
|
|
|
explicit Device(std::shared_ptr<Msg> msg);
|
|
|
|
private:
|
|
void __decodeMethodData(std::shared_ptr<Json> message);
|
|
};
|
|
|
|
} // namespace Rpc
|
|
} // namespace Di
|
|
|
|
#endif // INCLUDE_DI_RPC_CLASS_DEVICE_H_
|