blob: 17b754940e3a437b08fe1719ba94f52d63b6b94e [file] [log] [blame]
// DO NOT EDIT MANUALLY - Generated file
//
// Cluster metadata information for cluster SoilMeasurement (cluster code: 1072/0x430)
// based on src/controller/data_model/controller-clusters.matter
#pragma once
#include <optional>
#include <app/data-model-provider/ClusterMetadataProvider.h>
#include <app/data-model-provider/MetadataTypes.h>
#include <clusters/SoilMeasurement/Ids.h>
#include <clusters/SoilMeasurement/Metadata.h>
namespace chip {
namespace app {
namespace DataModel {
template <>
struct ClusterMetadataProvider<DataModel::AttributeEntry, Clusters::SoilMeasurement::Id>
{
static constexpr std::optional<DataModel::AttributeEntry> EntryFor(AttributeId attributeId)
{
using namespace Clusters::SoilMeasurement::Attributes;
switch (attributeId)
{
case SoilMoistureMeasurementLimits::Id:
return SoilMoistureMeasurementLimits::kMetadataEntry;
case SoilMoistureMeasuredValue::Id:
return SoilMoistureMeasuredValue::kMetadataEntry;
default:
return std::nullopt;
}
}
};
template <>
struct ClusterMetadataProvider<DataModel::AcceptedCommandEntry, Clusters::SoilMeasurement::Id>
{
static constexpr std::optional<DataModel::AcceptedCommandEntry> EntryFor(CommandId commandId)
{
using namespace Clusters::SoilMeasurement::Commands;
switch (commandId)
{
default:
return std::nullopt;
}
}
};
} // namespace DataModel
} // namespace app
} // namespace chip