Coverage Report

Created: 2026-03-27 06:51

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/ZoneManagement/Commands.h
Line
Count
Source
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/ZoneManagement/ClusterId.h>
37
#include <clusters/ZoneManagement/CommandIds.h>
38
#include <clusters/ZoneManagement/Enums.h>
39
#include <clusters/ZoneManagement/Structs.h>
40
41
#include <cstdint>
42
43
namespace chip {
44
namespace app {
45
namespace Clusters {
46
namespace ZoneManagement {
47
namespace Commands {
48
// Forward-declarations so we can reference these later.
49
50
namespace CreateTwoDCartesianZone {
51
struct Type;
52
struct DecodableType;
53
} // namespace CreateTwoDCartesianZone
54
55
namespace CreateTwoDCartesianZoneResponse {
56
struct Type;
57
struct DecodableType;
58
} // namespace CreateTwoDCartesianZoneResponse
59
60
namespace UpdateTwoDCartesianZone {
61
struct Type;
62
struct DecodableType;
63
} // namespace UpdateTwoDCartesianZone
64
65
namespace RemoveZone {
66
struct Type;
67
struct DecodableType;
68
} // namespace RemoveZone
69
70
namespace CreateOrUpdateTrigger {
71
struct Type;
72
struct DecodableType;
73
} // namespace CreateOrUpdateTrigger
74
75
namespace RemoveTrigger {
76
struct Type;
77
struct DecodableType;
78
} // namespace RemoveTrigger
79
80
} // namespace Commands
81
82
namespace Commands {
83
namespace CreateTwoDCartesianZone {
84
enum class Fields : uint8_t
85
{
86
    kZone = 0,
87
};
88
89
struct Type
90
{
91
public:
92
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
93
0
    static constexpr CommandId GetCommandId() { return Commands::CreateTwoDCartesianZone::Id; }
94
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
95
96
    Structs::TwoDCartesianZoneStruct::Type zone;
97
98
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
99
100
    using ResponseType = Clusters::ZoneManagement::Commands::CreateTwoDCartesianZoneResponse::DecodableType;
101
102
0
    static constexpr bool MustUseTimedInvoke() { return false; }
103
};
104
105
struct DecodableType
106
{
107
public:
108
0
    static constexpr CommandId GetCommandId() { return Commands::CreateTwoDCartesianZone::Id; }
109
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
110
    static constexpr bool kIsFabricScoped = false;
111
112
    Structs::TwoDCartesianZoneStruct::DecodableType zone;
113
114
    CHIP_ERROR Decode(TLV::TLVReader & reader);
115
};
116
}; // namespace CreateTwoDCartesianZone
117
namespace CreateTwoDCartesianZoneResponse {
118
enum class Fields : uint8_t
119
{
120
    kZoneID = 0,
121
};
122
123
struct Type
124
{
125
public:
126
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
127
0
    static constexpr CommandId GetCommandId() { return Commands::CreateTwoDCartesianZoneResponse::Id; }
128
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
129
130
    uint16_t zoneID = static_cast<uint16_t>(0);
131
132
    CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const;
133
134
    using ResponseType = DataModel::NullObjectType;
135
136
0
    static constexpr bool MustUseTimedInvoke() { return false; }
137
};
138
139
struct DecodableType
140
{
141
public:
142
0
    static constexpr CommandId GetCommandId() { return Commands::CreateTwoDCartesianZoneResponse::Id; }
143
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
144
145
    uint16_t zoneID = static_cast<uint16_t>(0);
146
147
    CHIP_ERROR Decode(TLV::TLVReader & reader);
148
};
149
}; // namespace CreateTwoDCartesianZoneResponse
150
namespace UpdateTwoDCartesianZone {
151
enum class Fields : uint8_t
152
{
153
    kZoneID = 0,
154
    kZone   = 1,
155
};
156
157
struct Type
158
{
159
public:
160
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
161
0
    static constexpr CommandId GetCommandId() { return Commands::UpdateTwoDCartesianZone::Id; }
162
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
163
164
    uint16_t zoneID = static_cast<uint16_t>(0);
165
    Structs::TwoDCartesianZoneStruct::Type zone;
166
167
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
168
169
    using ResponseType = DataModel::NullObjectType;
170
171
0
    static constexpr bool MustUseTimedInvoke() { return false; }
172
};
173
174
struct DecodableType
175
{
176
public:
177
0
    static constexpr CommandId GetCommandId() { return Commands::UpdateTwoDCartesianZone::Id; }
178
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
179
    static constexpr bool kIsFabricScoped = false;
180
181
    uint16_t zoneID = static_cast<uint16_t>(0);
182
    Structs::TwoDCartesianZoneStruct::DecodableType zone;
183
184
    CHIP_ERROR Decode(TLV::TLVReader & reader);
185
};
186
}; // namespace UpdateTwoDCartesianZone
187
namespace RemoveZone {
188
enum class Fields : uint8_t
189
{
190
    kZoneID = 0,
191
};
192
193
struct Type
194
{
195
public:
196
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
197
0
    static constexpr CommandId GetCommandId() { return Commands::RemoveZone::Id; }
198
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
199
200
    uint16_t zoneID = static_cast<uint16_t>(0);
201
202
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
203
204
    using ResponseType = DataModel::NullObjectType;
205
206
0
    static constexpr bool MustUseTimedInvoke() { return false; }
207
};
208
209
struct DecodableType
210
{
211
public:
212
0
    static constexpr CommandId GetCommandId() { return Commands::RemoveZone::Id; }
213
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
214
    static constexpr bool kIsFabricScoped = false;
215
216
    uint16_t zoneID = static_cast<uint16_t>(0);
217
218
    CHIP_ERROR Decode(TLV::TLVReader & reader);
219
};
220
}; // namespace RemoveZone
221
namespace CreateOrUpdateTrigger {
222
enum class Fields : uint8_t
223
{
224
    kTrigger = 0,
225
};
226
227
struct Type
228
{
229
public:
230
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
231
0
    static constexpr CommandId GetCommandId() { return Commands::CreateOrUpdateTrigger::Id; }
232
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
233
234
    Structs::ZoneTriggerControlStruct::Type trigger;
235
236
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
237
238
    using ResponseType = DataModel::NullObjectType;
239
240
0
    static constexpr bool MustUseTimedInvoke() { return false; }
241
};
242
243
struct DecodableType
244
{
245
public:
246
0
    static constexpr CommandId GetCommandId() { return Commands::CreateOrUpdateTrigger::Id; }
247
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
248
    static constexpr bool kIsFabricScoped = false;
249
250
    Structs::ZoneTriggerControlStruct::DecodableType trigger;
251
252
    CHIP_ERROR Decode(TLV::TLVReader & reader);
253
};
254
}; // namespace CreateOrUpdateTrigger
255
namespace RemoveTrigger {
256
enum class Fields : uint8_t
257
{
258
    kZoneID = 0,
259
};
260
261
struct Type
262
{
263
public:
264
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
265
0
    static constexpr CommandId GetCommandId() { return Commands::RemoveTrigger::Id; }
266
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
267
268
    uint16_t zoneID = static_cast<uint16_t>(0);
269
270
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
271
272
    using ResponseType = DataModel::NullObjectType;
273
274
0
    static constexpr bool MustUseTimedInvoke() { return false; }
275
};
276
277
struct DecodableType
278
{
279
public:
280
0
    static constexpr CommandId GetCommandId() { return Commands::RemoveTrigger::Id; }
281
0
    static constexpr ClusterId GetClusterId() { return Clusters::ZoneManagement::Id; }
282
    static constexpr bool kIsFabricScoped = false;
283
284
    uint16_t zoneID = static_cast<uint16_t>(0);
285
286
    CHIP_ERROR Decode(TLV::TLVReader & reader);
287
};
288
}; // namespace RemoveTrigger
289
} // namespace Commands
290
} // namespace ZoneManagement
291
} // namespace Clusters
292
} // namespace app
293
} // namespace chip