Coverage Report

Created: 2026-08-14 07:41

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