Skip to content

Commit aa1725d

Browse files
committed
One more rename: EncodableType
1 parent cb51aa5 commit aa1725d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/CommandHandler.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class CommandHandler
329329
template <typename CommandData>
330330
CHIP_ERROR AddResponseData(const ConcreteCommandPath & aRequestCommandPath, const CommandData & aData)
331331
{
332-
DataModel::DirectEncodableToTLV<CommandData> encoder(aData);
332+
DataModel::EncodableType<CommandData> encoder(aData);
333333
return AddResponseData(aRequestCommandPath, CommandData::GetCommandId(), encoder);
334334
}
335335

@@ -372,7 +372,7 @@ class CommandHandler
372372
template <typename CommandData>
373373
void AddResponse(const ConcreteCommandPath & aRequestCommandPath, const CommandData & aData)
374374
{
375-
DataModel::DirectEncodableToTLV<CommandData> encodable(aData);
375+
DataModel::EncodableType<CommandData> encodable(aData);
376376
return AddResponse(aRequestCommandPath, CommandData::GetCommandId(), encodable);
377377
}
378378

src/app/data-model/EncodableToTLV.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ class EncodableToTLV
4141
/// particular, types like <ClusterName>::Commands::<CommandName>::Type
4242
/// can be used as a type here.
4343
template <typename T>
44-
class DirectEncodableToTLV : public EncodableToTLV
44+
class EncodableType : public EncodableToTLV
4545
{
4646
public:
4747
/// Encodes the given value via `DataModel::Encode` when the underlying
4848
/// encode is called.
4949
///
5050
/// LIFETIME NOTE: uses a reference to value, so value must live longer than
5151
/// this object.
52-
DirectEncodableToTLV(const T & value) : mValue(value) {}
52+
EncodableType(const T & value) : mValue(value) {}
5353

5454
CHIP_ERROR EncodeTo(TLV::TLVWriter & writer, TLV::Tag tag) override { return DataModel::Encode(writer, tag, mValue); }
5555

0 commit comments

Comments
 (0)