nx_metadata_sdk 1.0 Metadata SDK

action_response.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <string>
6
7 #include <nx/sdk/helpers/ref_countable.h>
8 #include <nx/sdk/i_action_response.h>
9
10 namespace nx::sdk {
11
12 class ActionResponse: public RefCountable<IActionResponse>
13 {
14 public:
15 ActionResponse() = default;
16
18 void setActionUrl(std::string value);
19
21 void setMessageToUser(std::string value);
22
24 void setUseProxy(bool value);
25
27 void setUseDeviceCredentials(bool value);
28
29 virtual const char* actionUrl() const override;
30 virtual const char* messageToUser() const override;
31 virtual bool useProxy() const override;
32 virtual bool useDeviceCredentials() const override;
33
34 private:
35 std::string m_actionUrl;
36 std::string m_messageToUser;
37 bool m_useProxy = false;
38 bool m_useDeviceCredentials = false;
39 };
40
41 } // namespace nx::sdk
nx::sdk::ActionResponse::useProxy
virtual bool useProxy() const override
Definition: action_response.cpp:39
nx::sdk::ActionResponse::messageToUser
virtual const char * messageToUser() const override
Definition: action_response.cpp:34
nx::sdk::ActionResponse::useDeviceCredentials
virtual bool useDeviceCredentials() const override
Definition: action_response.cpp:44
nx::sdk::ActionResponse::setUseDeviceCredentials
void setUseDeviceCredentials(bool value)
Definition: action_response.cpp:24
nx::sdk::ActionResponse
Definition: action_response.h:12
nx::sdk::ActionResponse::setUseProxy
void setUseProxy(bool value)
Definition: action_response.cpp:19
nx::sdk
Definition: device_agent.h:12
nx::sdk::ActionResponse::actionUrl
virtual const char * actionUrl() const override
Definition: action_response.cpp:29
nx::sdk::ActionResponse::setActionUrl
void setActionUrl(std::string value)
Definition: action_response.cpp:7
nx::sdk::ActionResponse::setMessageToUser
void setMessageToUser(std::string value)
Definition: action_response.cpp:13
nx::sdk::RefCountable
Definition: ref_countable.h:83