File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#include " SinricProInterface.h"
4
- #include " SinricProRequest.h"
5
-
6
4
#include " SinricProNamespace.h"
5
+ #include " SinricProRequest.h"
7
6
namespace SINRICPRO_NAMESPACE {
8
7
9
8
class SinricProDeviceInterface {
10
- friend class SinricProClass ;
9
+ friend class SinricProClass ;
10
+
11
11
protected:
12
- virtual bool handleRequest (SinricProRequest & request) = 0;
13
- virtual String getDeviceId () = 0;
14
- virtual String getProductType () = 0;
15
- virtual void begin (SinricProInterface* eventSender) = 0;
16
- virtual unsigned long getTimestamp ();
12
+ virtual bool handleRequest (SinricProRequest& request) = 0;
13
+ virtual String getDeviceId () = 0;
14
+ virtual String getProductType () = 0;
15
+ virtual void begin (SinricProInterface* eventSender) = 0;
16
+ virtual unsigned long getTimestamp () = 0 ;
17
17
};
18
18
19
- } // SINRICPRO_NAMESPACE
19
+ } // namespace SINRICPRO_NAMESPACE
Original file line number Diff line number Diff line change 8
8
#pragma once
9
9
10
10
#include " ArduinoJson.h"
11
- #include " SinricProQueue.h"
12
-
13
11
#include " SinricProNamespace.h"
12
+ #include " SinricProQueue.h"
14
13
namespace SINRICPRO_NAMESPACE {
15
14
16
15
class SinricProInterface {
17
- friend class SinricProDevice ;
16
+ friend class SinricProDevice ;
17
+
18
18
protected:
19
- virtual void sendMessage (JsonDocument& jsonEvent);
20
- virtual String sign (const String& message);
21
- virtual JsonDocument prepareEvent (String deviceId, const char * action, const char * cause);
22
- virtual unsigned long getTimestamp ();
23
- virtual bool isConnected () ;
19
+ virtual void sendMessage (JsonDocument& jsonEvent) = 0 ;
20
+ virtual String sign (const String& message) = 0 ;
21
+ virtual JsonDocument prepareEvent (String deviceId, const char * action, const char * cause) = 0 ;
22
+ virtual unsigned long getTimestamp () = 0;
23
+ virtual bool isConnected () = 0 ;
24
24
};
25
25
26
- } // SINRICPRO_NAMESPACE
26
+ } // namespace SINRICPRO_NAMESPACE
You can’t perform that action at this time.
0 commit comments