SinricPro Library
Loading...
Searching...
No Matches
SinricProContactsensor.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#pragma once
8
9#include "SinricProDevice.h"
10#include "Capabilities/SettingController.h"
11#include "Capabilities/PushNotification.h"
12#include "Capabilities/ContactSensor.h"
13
14#include "SinricProNamespace.h"
15namespace SINRICPRO_NAMESPACE {
16
23 public SettingController<SinricProContactsensor>,
24 public PushNotification<SinricProContactsensor>,
25 public ContactSensor<SinricProContactsensor> {
26 friend class SettingController<SinricProContactsensor>;
29 public:
30 SinricProContactsensor(const String &deviceId) : SinricProDevice(deviceId, "CONTACT_SENSOR") {}
31};
32
33} // SINRICPRO_NAMESPACE
34
35using SinricProContactsensor = SINRICPRO_NAMESPACE::SinricProContactsensor;
ContactSensor.
Definition ContactSensor.h:19
PushNotification.
Definition PushNotification.h:17
Device to report contact sensor events.
Definition SinricProContactsensor.h:25
Base class for all device types.
Definition SinricProDevice.h:24