nx_metadata_sdk 1.0 Metadata SDK

i_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 <nx/sdk/interface.h>
6
7 namespace nx::sdk {
8
13 class IActionResponse0: public Interface<IActionResponse0>
14 {
15 public:
16 static auto interfaceId() { return makeId("nx::sdk::IActionResponse"); }
17
22 virtual const char* actionUrl() const = 0;
23
28 virtual const char* messageToUser() const = 0;
29 };
30
31 class IActionResponse: public Interface<IActionResponse, IActionResponse0>
32 {
33 public:
34 static auto interfaceId() { return makeId("nx::sdk::IActionResponse1"); }
35
39 virtual bool useProxy() const = 0;
40
44 virtual bool useDeviceCredentials() const = 0;
45 };
46 using IActionResponse1 = IActionResponse;
47
48 } // namespace nx::sdk
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::IActionResponse::useDeviceCredentials
virtual bool useDeviceCredentials() const =0
nx::sdk::IActionResponse::useProxy
virtual bool useProxy() const =0
nx::sdk::IActionResponse0
Definition: i_action_response.h:13
nx::sdk
Definition: device_agent.h:12
nx::sdk::IActionResponse
Definition: i_action_response.h:31
nx::sdk::IActionResponse0::actionUrl
virtual const char * actionUrl() const =0
nx::sdk::IActionResponse0::messageToUser
virtual const char * messageToUser() const =0
nx::sdk::IRefCountable::makeId
static const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77