Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
CamsNotification.h
Go to the documentation of this file.
1
2// Copyright (c) 2017 Digital Barriers
4
22
23#pragma once
24
25#include "EdgeVisSDK.h"
26#include "Pimpl.h"
30
31namespace EdgeVisDecoderSDK
32{
33 class CamsNotificationImpl;
34
35 class CamsNotification : public EdgeVisSDKPimpl<CamsNotificationImpl>
36 {
37 public:
38 DB_EDGEVIS_SDK CamsNotification();
39 DB_EDGEVIS_SDK virtual ~CamsNotification();
40 EdgeVisSDKPimplWeakConstructor(CamsNotification);
41
42 public:
48 DB_EDGEVIS_SDK int64_t GetId() const;
49
55 DB_EDGEVIS_SDK std::wstring GetRule() const;
56
62 DB_EDGEVIS_SDK std::vector<CamsNotificationEventDesc> GetEvents() const;
63
69 DB_EDGEVIS_SDK std::vector<CamsNotificationAttachmentInfo> GetAttachments() const;
70
76 DB_EDGEVIS_SDK int64_t GetTime() const;
77
83 DB_EDGEVIS_SDK std::vector<std::wstring> GetToList() const;
84
90 DB_EDGEVIS_SDK ECamsNotificationState GetState() const;
91
97 DB_EDGEVIS_SDK std::wstring GetSubject() const;
98
104 DB_EDGEVIS_SDK std::wstring GetContent() const;
105
112
118 DB_EDGEVIS_SDK std::wstring GetEncoderUUID() const;
119
125 DB_EDGEVIS_SDK std::wstring GetDeviceUUID() const;
126
141 DB_EDGEVIS_SDK bool UpdateStateFromBulkNotification(int64_t id, ECamsNotificationState old_state, ECamsNotificationState new_state);
142 };
143}
DB_EDGEVIS_SDK int64_t GetTime() const
Retrieve the timestamp that the CAMS rule generated this notification.
DB_EDGEVIS_SDK ECamsNotificationState GetPreviousState() const
Retrieve the previous state of this notification.
DB_EDGEVIS_SDK std::vector< CamsNotificationAttachmentInfo > GetAttachments() const
Retrieve the list of attachments associated with this CAMS notification.
DB_EDGEVIS_SDK std::vector< std::wstring > GetToList() const
Retrieve the list of EdgeVis users who this notification was sent to.
DB_EDGEVIS_SDK std::wstring GetRule() const
Retrieve the unique ID of the CAMS rule that generated this notification.
DB_EDGEVIS_SDK std::vector< CamsNotificationEventDesc > GetEvents() const
Retrieve the list of source encoder events that caused the CAMS rule to generate this notification.
DB_EDGEVIS_SDK std::wstring GetContent() const
Retrieve the message body for this notification.
DB_EDGEVIS_SDK ECamsNotificationState GetState() const
Retrieve the current state of this notification.
DB_EDGEVIS_SDK int64_t GetId() const
Retrieve the unique ID for this notification as generated by CAMS.
DB_EDGEVIS_SDK std::wstring GetEncoderUUID() const
Retrieve the UUID of the Encoder associated with this rule if applicable.
DB_EDGEVIS_SDK bool UpdateStateFromBulkNotification(int64_t id, ECamsNotificationState old_state, ECamsNotificationState new_state)
Update the state of this notification based on receiving a bulk notification update from the Server.
DB_EDGEVIS_SDK std::wstring GetDeviceUUID() const
Retrieve the UUID of the Device associated with this rule if applicable.
DB_EDGEVIS_SDK std::wstring GetSubject() const
Retrieve the subject for this notification.
ECamsNotificationState
CAMS notification state types.
Definition ECamsNotificationState.h:22
The EdgeVis Decoder SDK namespace.