File tree 3 files changed +8
-8
lines changed
tv-app/android/include/target-navigator
android/App/app/src/main/jni/cpp
darwin/MatterTvCastingBridge/MatterTvCastingBridge
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ CHIP_ERROR TargetNavigatorManager::HandleGetTargetList(AttributeValueEncoder & a
54
54
if (value[attrId].isArray ())
55
55
{
56
56
return aEncoder.EncodeList ([&](const auto & encoder) -> CHIP_ERROR {
57
- int i = 0 ;
58
- std::string targetId = to_string (
59
- static_cast < uint32_t >( chip::app::Clusters::TargetNavigator::Structs::TargetInfo ::Fields::kIdentifier ));
57
+ int i = 0 ;
58
+ std::string targetId = to_string ( static_cast < uint32_t > (
59
+ chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct ::Fields::kIdentifier ));
60
60
std::string targetName = to_string (
61
- static_cast <uint32_t >(chip::app::Clusters::TargetNavigator::Structs::TargetInfo ::Fields::kName ));
61
+ static_cast <uint32_t >(chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct ::Fields::kName ));
62
62
for (Json::Value & entry : value[attrId])
63
63
{
64
64
if (!entry[targetId].isUInt () || !entry[targetName].isString () || entry[targetId].asUInt () > 255 )
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ jobject TargetListSuccessHandlerJNI::ConvertToJObject(
321
321
auto iter = responseData.begin ();
322
322
while (iter.Next ())
323
323
{
324
- const chip::app::Clusters::TargetNavigator::Structs::TargetInfo ::DecodableType & targetInfo = iter.GetValue ();
324
+ const chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct ::DecodableType & targetInfo = iter.GetValue ();
325
325
326
326
jclass responseTypeClass = nullptr ;
327
327
CHIP_ERROR err =
Original file line number Diff line number Diff line change @@ -1637,12 +1637,12 @@ - (void)targetNavigator_subscribeTargetList:(ContentApp * _Nonnull)contentApp
1637
1637
objCTargetList = [NSMutableArray arrayWithCapacity: targetInfoCount];
1638
1638
auto iter = targetList.begin ();
1639
1639
while (iter.Next ()) {
1640
- const chip::app::Clusters::TargetNavigator::Structs::TargetInfo ::DecodableType & targetInfo
1640
+ const chip::app::Clusters::TargetNavigator::Structs::TargetInfoStruct ::DecodableType & targetInfo
1641
1641
= iter.GetValue ();
1642
- TargetNavigator_TargetInfo * objCTargetInfo = [[TargetNavigator_TargetInfo alloc ]
1642
+ TargetNavigator_TargetInfoStruct * objCTargetInfo = [[TargetNavigator_TargetInfoStruct alloc ]
1643
1643
initWithIdentifier: @(targetInfo.identifier)
1644
1644
name: [NSString stringWithUTF8String: targetInfo.name.data ()]];
1645
- [objCTargetList addObject: objCTargetInfo ];
1645
+ [objCTargetList addObject: objCTargetInfoStruct ];
1646
1646
}
1647
1647
}
1648
1648
callback (objCTargetList);
You can’t perform that action at this time.
0 commit comments