Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
CamsGetNotificationsResult.h
Go to the documentation of this file.
1
2// Copyright (c) 2017 Digital Barriers
4
20
21#pragma once
22#include "EdgeVisSDK.h"
23#include "Pimpl.h"
24#include "CamsNotification.h"
26#include <vector>
27
28namespace EdgeVisDecoderSDK
29{
30 class CamsGetNotificationsResultImpl;
31
32 class CamsGetNotificationsResult : public EdgeVisSDKPimpl<CamsGetNotificationsResultImpl>
33 {
34 public:
35 DB_EDGEVIS_SDK CamsGetNotificationsResult();
36 CamsGetNotificationsResult(bool hasError, std::wstring errMsg);
37 CamsGetNotificationsResult(bool hasError, std::wstring errMsg, bool hasMorePages, std::vector<CamsNotification> notifications, std::vector<CamsNotificationStateDesc> states);
38 DB_EDGEVIS_SDK virtual ~CamsGetNotificationsResult();
39 EdgeVisSDKPimplWeakConstructor(CamsGetNotificationsResult);
40
41 public:
42
49 DB_EDGEVIS_SDK bool HasError();
50
56 DB_EDGEVIS_SDK std::wstring GetErrorMsg();
57
58
67 DB_EDGEVIS_SDK bool HasMorePages();
68
76 DB_EDGEVIS_SDK std::vector<CamsNotification> GetNotifications();
77
84 DB_EDGEVIS_SDK std::vector<CamsNotificationStateDesc> GetNotificationStates();
85 };
86}
DB_EDGEVIS_SDK bool HasError()
Determine if the request to retrieve a page of CAMS notifications encountered any errors.
DB_EDGEVIS_SDK std::vector< CamsNotificationStateDesc > GetNotificationStates()
Retrieve the total number of notifications in each state available on the Server.
DB_EDGEVIS_SDK std::wstring GetErrorMsg()
Retrieve an error message in the case of an error.
DB_EDGEVIS_SDK bool HasMorePages()
Determine if there are more existing notifications available at the Server.
DB_EDGEVIS_SDK std::vector< CamsNotification > GetNotifications()
Retrieve the page of historical notifications returned from the Server.
The EdgeVis Decoder SDK namespace.