SinricPro Library
SinricProInterface.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 #ifndef _SINRICPRO_INTERFACE_H_
9 #define _SINRICPRO_INTERFACE_H_
10 
11 #include "ArduinoJson.h"
12 #include "SinricProQueue.h"
13 #include "SinricProId.h"
14 
15 class SinricProInterface {
16  friend class SinricProDevice;
17  protected:
18  virtual void sendMessage(JsonDocument& jsonEvent);
19  virtual DynamicJsonDocument prepareEvent(DeviceId deviceId, const char* action, const char* cause);
20  virtual unsigned long getTimestamp();
21  virtual bool isConnected();
22 };
23 
24 
25 #endif
Base class for all device types.
Definition: SinricProDevice.h:25