Coverage Report

Created: 2025-08-28 06:31

/src/connectedhomeip/zzz_generated/app-common/clusters/ServiceArea/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/ServiceArea/ClusterId.h>
37
#include <clusters/ServiceArea/CommandIds.h>
38
#include <clusters/ServiceArea/Enums.h>
39
#include <clusters/ServiceArea/Structs.h>
40
41
#include <cstdint>
42
43
namespace chip {
44
namespace app {
45
namespace Clusters {
46
namespace ServiceArea {
47
namespace Commands {
48
// Forward-declarations so we can reference these later.
49
50
namespace SelectAreas {
51
struct Type;
52
struct DecodableType;
53
} // namespace SelectAreas
54
55
namespace SelectAreasResponse {
56
struct Type;
57
struct DecodableType;
58
} // namespace SelectAreasResponse
59
60
namespace SkipArea {
61
struct Type;
62
struct DecodableType;
63
} // namespace SkipArea
64
65
namespace SkipAreaResponse {
66
struct Type;
67
struct DecodableType;
68
} // namespace SkipAreaResponse
69
70
} // namespace Commands
71
72
namespace Commands {
73
namespace SelectAreas {
74
enum class Fields : uint8_t
75
{
76
    kNewAreas = 0,
77
};
78
79
struct Type
80
{
81
public:
82
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
83
0
    static constexpr CommandId GetCommandId() { return Commands::SelectAreas::Id; }
84
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
85
86
    DataModel::List<const uint32_t> newAreas;
87
88
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
89
90
    using ResponseType = Clusters::ServiceArea::Commands::SelectAreasResponse::DecodableType;
91
92
0
    static constexpr bool MustUseTimedInvoke() { return false; }
93
};
94
95
struct DecodableType
96
{
97
public:
98
0
    static constexpr CommandId GetCommandId() { return Commands::SelectAreas::Id; }
99
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
100
    static constexpr bool kIsFabricScoped = false;
101
102
    DataModel::DecodableList<uint32_t> newAreas;
103
104
    CHIP_ERROR Decode(TLV::TLVReader & reader);
105
};
106
}; // namespace SelectAreas
107
namespace SelectAreasResponse {
108
enum class Fields : uint8_t
109
{
110
    kStatus     = 0,
111
    kStatusText = 1,
112
};
113
114
struct Type
115
{
116
public:
117
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
118
0
    static constexpr CommandId GetCommandId() { return Commands::SelectAreasResponse::Id; }
119
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
120
121
    SelectAreasStatus status = static_cast<SelectAreasStatus>(0);
122
    chip::CharSpan statusText;
123
124
    CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const;
125
126
    using ResponseType = DataModel::NullObjectType;
127
128
0
    static constexpr bool MustUseTimedInvoke() { return false; }
129
};
130
131
struct DecodableType
132
{
133
public:
134
0
    static constexpr CommandId GetCommandId() { return Commands::SelectAreasResponse::Id; }
135
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
136
137
    SelectAreasStatus status = static_cast<SelectAreasStatus>(0);
138
    chip::CharSpan statusText;
139
140
    CHIP_ERROR Decode(TLV::TLVReader & reader);
141
};
142
}; // namespace SelectAreasResponse
143
namespace SkipArea {
144
enum class Fields : uint8_t
145
{
146
    kSkippedArea = 0,
147
};
148
149
struct Type
150
{
151
public:
152
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
153
0
    static constexpr CommandId GetCommandId() { return Commands::SkipArea::Id; }
154
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
155
156
    uint32_t skippedArea = static_cast<uint32_t>(0);
157
158
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
159
160
    using ResponseType = Clusters::ServiceArea::Commands::SkipAreaResponse::DecodableType;
161
162
0
    static constexpr bool MustUseTimedInvoke() { return false; }
163
};
164
165
struct DecodableType
166
{
167
public:
168
0
    static constexpr CommandId GetCommandId() { return Commands::SkipArea::Id; }
169
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
170
    static constexpr bool kIsFabricScoped = false;
171
172
    uint32_t skippedArea = static_cast<uint32_t>(0);
173
174
    CHIP_ERROR Decode(TLV::TLVReader & reader);
175
};
176
}; // namespace SkipArea
177
namespace SkipAreaResponse {
178
enum class Fields : uint8_t
179
{
180
    kStatus     = 0,
181
    kStatusText = 1,
182
};
183
184
struct Type
185
{
186
public:
187
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
188
0
    static constexpr CommandId GetCommandId() { return Commands::SkipAreaResponse::Id; }
189
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
190
191
    SkipAreaStatus status = static_cast<SkipAreaStatus>(0);
192
    chip::CharSpan statusText;
193
194
    CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const;
195
196
    using ResponseType = DataModel::NullObjectType;
197
198
0
    static constexpr bool MustUseTimedInvoke() { return false; }
199
};
200
201
struct DecodableType
202
{
203
public:
204
0
    static constexpr CommandId GetCommandId() { return Commands::SkipAreaResponse::Id; }
205
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
206
207
    SkipAreaStatus status = static_cast<SkipAreaStatus>(0);
208
    chip::CharSpan statusText;
209
210
    CHIP_ERROR Decode(TLV::TLVReader & reader);
211
};
212
}; // namespace SkipAreaResponse
213
} // namespace Commands
214
} // namespace ServiceArea
215
} // namespace Clusters
216
} // namespace app
217
} // namespace chip