SinricPro Library
Loading...
Searching...
No Matches
SinricProSwitch.h
1/*
2 * Copyright (c) 2019 Sinric. All rights reserved.
3 * Licensed under Creative Commons Attribution-Share Alike (CC BY-SA)
4 *
5 * This file is part of the Sinric Pro (https://github.com/sinricpro/)
6 */
7
8#pragma once
9
10#include "SinricProDevice.h"
11#include "Capabilities/SettingController.h"
12#include "Capabilities/PushNotification.h"
13#include "Capabilities/PowerStateController.h"
14
15#include "SinricProNamespace.h"
16namespace SINRICPRO_NAMESPACE {
17
24 public SettingController<SinricProSwitch>,
25 public PushNotification<SinricProSwitch>,
26 public PowerStateController<SinricProSwitch> {
27 friend class SettingController<SinricProSwitch>;
30 public:
31 SinricProSwitch(const String &deviceId) : SinricProDevice(deviceId, "SWITCH") {};
32};
33
34} // SINRICPRO_NAMESPACE
35
36using SinricProSwitch = SINRICPRO_NAMESPACE::SinricProSwitch;
PowerStateController.
Definition PowerStateController.h:36
PushNotification.
Definition PushNotification.h:17
Base class for all device types.
Definition SinricProDevice.h:24
Device suporting basic on / off command.
Definition SinricProSwitch.h:26