nx_metadata_sdk  1.0
Metadata SDK
i_settings_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 #include <nx/sdk/i_string.h>
8 #include <nx/sdk/i_string_map.h>
9 
10 namespace nx {
11 namespace sdk {
12 
13 class ISettingsResponse0: public Interface<ISettingsResponse0>
14 {
15 public:
16  static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse"); }
17 
21  protected: virtual IStringMap* getValues() const = 0;
22  public: Ptr<IStringMap> values() const { return toPtr(getValues()); }
23 
28  protected: virtual IStringMap* getErrors() const = 0;
29  public: Ptr<IStringMap> errors() const { return toPtr(getErrors()); }
30 };
31 
32 class ISettingsResponse: public Interface<ISettingsResponse, ISettingsResponse0>
33 {
34 public:
35  static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse0"); }
36 
37  protected: virtual IString* getModel() const = 0;
38  public: Ptr<IString> model() const { return toPtr(getModel()); }
39 };
40 
41 } // namespace sdk
42 } // namespace nx
Definition: i_settings_response.h:32
Definition: i_string_map.h:10
Definition: interface.h:28
virtual IStringMap * getErrors() const =0
Definition: ptr.h:18
virtual IStringMap * getValues() const =0
Definition: i_string.h:10
Definition: i_settings_response.h:13
Definition: apple_utils.h:6
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77