/src/connectedhomeip/zzz_generated/app-common/clusters/RvcOperationalState/Commands.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * |
3 | | * Copyright (c) 2022 Project CHIP Authors |
4 | | * |
5 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | | * you may not use this file except in compliance with the License. |
7 | | * You may obtain a copy of the License at |
8 | | * |
9 | | * http://www.apache.org/licenses/LICENSE-2.0 |
10 | | * |
11 | | * Unless required by applicable law or agreed to in writing, software |
12 | | * distributed under the License is distributed on an "AS IS" BASIS, |
13 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | | * See the License for the specific language governing permissions and |
15 | | * limitations under the License. |
16 | | */ |
17 | | |
18 | | // THIS FILE IS GENERATED BY ZAP |
19 | | // This file is generated from clusters-Commands.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/data-model/DecodableList.h> |
24 | | #include <app/data-model/Encode.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/NullObject.h> |
27 | | #include <app/data-model/Nullable.h> |
28 | | #include <lib/core/DataModelTypes.h> |
29 | | #include <lib/core/Optional.h> |
30 | | #include <lib/core/TLV.h> |
31 | | #include <lib/support/BitMask.h> |
32 | | |
33 | | #include <clusters/shared/Enums.h> |
34 | | #include <clusters/shared/Structs.h> |
35 | | |
36 | | #include <clusters/RvcOperationalState/ClusterId.h> |
37 | | #include <clusters/RvcOperationalState/CommandIds.h> |
38 | | #include <clusters/RvcOperationalState/Enums.h> |
39 | | #include <clusters/RvcOperationalState/Structs.h> |
40 | | |
41 | | #include <cstdint> |
42 | | |
43 | | namespace chip { |
44 | | namespace app { |
45 | | namespace Clusters { |
46 | | namespace RvcOperationalState { |
47 | | namespace Commands { |
48 | | // Forward-declarations so we can reference these later. |
49 | | |
50 | | namespace Pause { |
51 | | struct Type; |
52 | | struct DecodableType; |
53 | | } // namespace Pause |
54 | | |
55 | | namespace Resume { |
56 | | struct Type; |
57 | | struct DecodableType; |
58 | | } // namespace Resume |
59 | | |
60 | | namespace OperationalCommandResponse { |
61 | | struct Type; |
62 | | struct DecodableType; |
63 | | } // namespace OperationalCommandResponse |
64 | | |
65 | | namespace GoHome { |
66 | | struct Type; |
67 | | struct DecodableType; |
68 | | } // namespace GoHome |
69 | | |
70 | | } // namespace Commands |
71 | | |
72 | | namespace Commands { |
73 | | namespace Pause { |
74 | | enum class Fields : uint8_t |
75 | | { |
76 | | }; |
77 | | |
78 | | struct Type |
79 | | { |
80 | | public: |
81 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
82 | 0 | static constexpr CommandId GetCommandId() { return Commands::Pause::Id; } |
83 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
84 | | |
85 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
86 | | |
87 | | using ResponseType = Clusters::RvcOperationalState::Commands::OperationalCommandResponse::DecodableType; |
88 | | |
89 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
90 | | }; |
91 | | |
92 | | struct DecodableType |
93 | | { |
94 | | public: |
95 | 0 | static constexpr CommandId GetCommandId() { return Commands::Pause::Id; } |
96 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
97 | | static constexpr bool kIsFabricScoped = false; |
98 | | |
99 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
100 | | }; |
101 | | }; // namespace Pause |
102 | | namespace Resume { |
103 | | enum class Fields : uint8_t |
104 | | { |
105 | | }; |
106 | | |
107 | | struct Type |
108 | | { |
109 | | public: |
110 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
111 | 0 | static constexpr CommandId GetCommandId() { return Commands::Resume::Id; } |
112 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
113 | | |
114 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
115 | | |
116 | | using ResponseType = Clusters::RvcOperationalState::Commands::OperationalCommandResponse::DecodableType; |
117 | | |
118 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
119 | | }; |
120 | | |
121 | | struct DecodableType |
122 | | { |
123 | | public: |
124 | 0 | static constexpr CommandId GetCommandId() { return Commands::Resume::Id; } |
125 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
126 | | static constexpr bool kIsFabricScoped = false; |
127 | | |
128 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
129 | | }; |
130 | | }; // namespace Resume |
131 | | namespace OperationalCommandResponse { |
132 | | enum class Fields : uint8_t |
133 | | { |
134 | | kCommandResponseState = 0, |
135 | | }; |
136 | | |
137 | | struct Type |
138 | | { |
139 | | public: |
140 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
141 | 0 | static constexpr CommandId GetCommandId() { return Commands::OperationalCommandResponse::Id; } |
142 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
143 | | |
144 | | Structs::ErrorStateStruct::Type commandResponseState; |
145 | | |
146 | | CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const; |
147 | | |
148 | | using ResponseType = DataModel::NullObjectType; |
149 | | |
150 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
151 | | }; |
152 | | |
153 | | struct DecodableType |
154 | | { |
155 | | public: |
156 | 0 | static constexpr CommandId GetCommandId() { return Commands::OperationalCommandResponse::Id; } |
157 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
158 | | |
159 | | Structs::ErrorStateStruct::DecodableType commandResponseState; |
160 | | |
161 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
162 | | }; |
163 | | }; // namespace OperationalCommandResponse |
164 | | namespace GoHome { |
165 | | enum class Fields : uint8_t |
166 | | { |
167 | | }; |
168 | | |
169 | | struct Type |
170 | | { |
171 | | public: |
172 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
173 | 0 | static constexpr CommandId GetCommandId() { return Commands::GoHome::Id; } |
174 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
175 | | |
176 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
177 | | |
178 | | using ResponseType = Clusters::RvcOperationalState::Commands::OperationalCommandResponse::DecodableType; |
179 | | |
180 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
181 | | }; |
182 | | |
183 | | struct DecodableType |
184 | | { |
185 | | public: |
186 | 0 | static constexpr CommandId GetCommandId() { return Commands::GoHome::Id; } |
187 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::RvcOperationalState::Id; } |
188 | | static constexpr bool kIsFabricScoped = false; |
189 | | |
190 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
191 | | }; |
192 | | }; // namespace GoHome |
193 | | } // namespace Commands |
194 | | } // namespace RvcOperationalState |
195 | | } // namespace Clusters |
196 | | } // namespace app |
197 | | } // namespace chip |